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:
parent
d922b43468
commit
df6290f266
1 changed files with 0 additions and 1 deletions
1
yum
1
yum
|
@ -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':
|
||||
|
|
Loading…
Reference in a new issue