From df6290f266f1e66f39b3ece46b40bb24c4cd6a5d Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Wed, 8 Aug 2012 20:43:01 -0400 Subject: [PATCH] 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. --- yum | 1 - 1 file changed, 1 deletion(-) diff --git a/yum b/yum index 728d12aaf50..a36b2a81ae2 100755 --- a/yum +++ b/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':