mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
avoid traceback when name is None
This commit is contained in:
@@ -385,8 +385,9 @@ def main():
|
|||||||
if extra_args:
|
if extra_args:
|
||||||
cmd += ' %s' % extra_args
|
cmd += ' %s' % extra_args
|
||||||
|
|
||||||
for pkg in name:
|
if pkg:
|
||||||
cmd += ' %s' % _get_full_name(pkg, version)
|
for pkg in name:
|
||||||
|
cmd += ' %s' % _get_full_name(pkg, version)
|
||||||
else:
|
else:
|
||||||
if requirements:
|
if requirements:
|
||||||
cmd += ' -r %s' % requirements
|
cmd += ' -r %s' % requirements
|
||||||
|
|||||||
Reference in New Issue
Block a user