From cfacc1fd53842090060273b7a10011e7949689f8 Mon Sep 17 00:00:00 2001 From: Matt Clay Date: Fri, 2 Sep 2016 18:33:33 -0700 Subject: [PATCH] Pass '_' to async_wrapper for no argsfile. (#17374) This provides compatibility with changes made to the async_wrapper module. --- lib/ansible/plugins/action/async.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/ansible/plugins/action/async.py b/lib/ansible/plugins/action/async.py index 124f2f72581..abe0abe5e27 100644 --- a/lib/ansible/plugins/action/async.py +++ b/lib/ansible/plugins/action/async.py @@ -89,6 +89,9 @@ class ActionModule(ActionBase): async_cmd = [env_string, async_module_path, async_jid, async_limit, remote_module_path] if argsfile: async_cmd.append(argsfile) + else: + # maintain a fixed number of positional parameters for async_wrapper + async_cmd.append('_') async_cmd = " ".join([to_unicode(x) for x in async_cmd]) result.update(self._low_level_execute_command(cmd=async_cmd))