Merge pull request #8853 from kvar/devel

zypper: handle lists of packages efficiently
This commit is contained in:
Michael DeHaan 2014-09-11 17:30:21 -04:00
commit fb13e2bf2e
2 changed files with 65 additions and 42 deletions

View file

@ -663,7 +663,7 @@ class Runner(object):
if type(items) != list:
raise errors.AnsibleError("lookup plugins have to return a list: %r" % items)
if len(items) and utils.is_list_of_strings(items) and self.module_name in [ 'apt', 'yum', 'pkgng' ]:
if len(items) and utils.is_list_of_strings(items) and self.module_name in [ 'apt', 'yum', 'pkgng', 'zypper' ]:
# hack for apt, yum, and pkgng so that with_items maps back into a single module call
use_these_items = []
for x in items: