Commit b63a3bd0 by Lorin Hochstein

Save module name and args when processing list of items.

This is necessary because daisy-chained modules will overwrite
these values.
parent 8d7f526d
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment