mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
Only run yum,apt through the with_items loop if there is a list of items. Just a cosmetic fix on return values
for the most part.
This commit is contained in:
@@ -112,7 +112,6 @@ def list_stuff(conf_file, stuff):
|
||||
if conf_file and os.path.exists(conf_file):
|
||||
repoq = '%s -c %s --plugins --quiet -q ' % (repoquery,conf_file)
|
||||
|
||||
|
||||
if stuff == 'installed':
|
||||
return [ pkg_to_dict(p) for p in is_installed(repoq, '-a', qf=qf) if p.strip() ]
|
||||
elif stuff == 'updates':
|
||||
|
||||
Reference in New Issue
Block a user