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

Pass '_' to async_wrapper for no argsfile. (#17374)

This provides compatibility with changes made to the async_wrapper module.
This commit is contained in:
Matt Clay 2016-09-02 18:33:33 -07:00 committed by GitHub
parent bc143a9adb
commit cfacc1fd53

View file

@ -89,6 +89,9 @@ class ActionModule(ActionBase):
async_cmd = [env_string, async_module_path, async_jid, async_limit, remote_module_path] async_cmd = [env_string, async_module_path, async_jid, async_limit, remote_module_path]
if argsfile: if argsfile:
async_cmd.append(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]) async_cmd = " ".join([to_unicode(x) for x in async_cmd])
result.update(self._low_level_execute_command(cmd=async_cmd)) result.update(self._low_level_execute_command(cmd=async_cmd))