From 9124ebb4f121a940a73bff3dcf8e04a861ada29b Mon Sep 17 00:00:00 2001 From: James Cammarata Date: Wed, 9 Oct 2013 15:07:19 -0500 Subject: [PATCH] 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 --- lib/ansible/runner/poller.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ansible/runner/poller.py b/lib/ansible/runner/poller.py index 206868e1f7..af2be9246f 100644 --- a/lib/ansible/runner/poller.py +++ b/lib/ansible/runner/poller.py @@ -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()