1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

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
This commit is contained in:
James Cammarata 2013-10-09 15:07:19 -05:00
parent 2078518735
commit 9124ebb4f1

View file

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