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:
Michael DeHaan 2012-08-08 20:43:01 -04:00
parent d922b43468
commit df6290f266

1
yum
View file

@ -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':