1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-06-05 15:57:05 +00:00

avoid traceback when name is None

This commit is contained in:
Brian Coca 2016-07-05 15:30:52 -04:00 committed by Matt Clay
parent 5d928ca13c
commit c871f488eb

View file

@ -385,8 +385,9 @@ def main():
if extra_args:
cmd += ' %s' % extra_args
for pkg in name:
cmd += ' %s' % _get_full_name(pkg, version)
if pkg:
for pkg in name:
cmd += ' %s' % _get_full_name(pkg, version)
else:
if requirements:
cmd += ' -r %s' % requirements