mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 13:20:23 -07:00
Merge pull request #8853 from kvar/devel
zypper: handle lists of packages efficiently
This commit is contained in:
commit
fb13e2bf2e
2 changed files with 65 additions and 42 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue