mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-05 04:42:48 +00:00
Merge pull request #687 from lorin/save-name-args
Save module name and args when processing list of items.
This commit is contained in:
@@ -492,7 +492,12 @@ class Runner(object):
|
||||
all_changed = False
|
||||
all_failed = False
|
||||
results = []
|
||||
# Save module name and args since daisy-chaining can overwrite them
|
||||
module_name = self.module_name
|
||||
module_args = self.module_args
|
||||
for x in items:
|
||||
self.module_name = module_name
|
||||
self.module_args = module_args
|
||||
inject['item'] = x
|
||||
result = self._executor_internal_inner(host, inject, port)
|
||||
results.append(result.result)
|
||||
|
||||
Reference in New Issue
Block a user