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
pull/4421/head
James Cammarata 11 years ago
parent 2078518735
commit 9124ebb4f1

@ -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()

Loading…
Cancel
Save