mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-27 07:01:22 -07:00
avoid traceback when name is None
This commit is contained in:
parent
5d928ca13c
commit
c871f488eb
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue