mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
Merge pull request #8853 from kvar/devel
zypper: handle lists of packages efficiently
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user