mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 05:12:45 +00: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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user