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.
reviewable/pr18780/r1
Michael DeHaan 12 years ago
parent d922b43468
commit df6290f266

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…
Cancel
Save