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:
parent
2078518735
commit
9124ebb4f1
1 changed files with 1 additions and 0 deletions
|
@ -59,6 +59,7 @@ class AsyncPoller(object):
|
|||
self.runner.module_args = "jid=%s" % self.jid
|
||||
self.runner.pattern = "*"
|
||||
self.runner.background = 0
|
||||
self.runner.complex_args = None
|
||||
|
||||
self.runner.inventory.restrict_to(self.hosts_to_poll)
|
||||
results = self.runner.run()
|
||||
|
|
Loading…
Reference in a new issue