Commit 9124ebb4 by James Cammarata

Clear out complex_args before running async_status

When using complex args with an async task, the subsequent runs of
async_status would inherit them, causing a module error (invalid params).

Fixes #3150
parent 20785187
...@@ -59,6 +59,7 @@ class AsyncPoller(object): ...@@ -59,6 +59,7 @@ class AsyncPoller(object):
self.runner.module_args = "jid=%s" % self.jid self.runner.module_args = "jid=%s" % self.jid
self.runner.pattern = "*" self.runner.pattern = "*"
self.runner.background = 0 self.runner.background = 0
self.runner.complex_args = None
self.runner.inventory.restrict_to(self.hosts_to_poll) self.runner.inventory.restrict_to(self.hosts_to_poll)
results = self.runner.run() results = self.runner.run()
......
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