Add dnf to list of modules that we squash loop items for
This commit is contained in:
parent
176b04a812
commit
31ef87eb72
1 changed files with 1 additions and 1 deletions
|
@ -740,7 +740,7 @@ class Runner(object):
|
||||||
if type(items) != list:
|
if type(items) != list:
|
||||||
raise errors.AnsibleError("lookup plugins have to return a list: %r" % items)
|
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', 'zypper' ]:
|
if len(items) and utils.is_list_of_strings(items) and self.module_name in ( 'apt', 'yum', 'pkgng', 'zypper', 'dnf' ):
|
||||||
# hack for apt, yum, and pkgng so that with_items maps back into a single module call
|
# hack for apt, yum, and pkgng so that with_items maps back into a single module call
|
||||||
use_these_items = []
|
use_these_items = []
|
||||||
for x in items:
|
for x in items:
|
||||||
|
|
Loading…
Reference in a new issue