mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-02 00:33:09 +00:00
avoid traceback when name is None
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user