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

Fix for invocation not being added to output.

We want invocation to be omitted when we are running async, not when we
aren't running async.
This commit is contained in:
Toshio Kuratomi 2015-10-22 09:03:35 -07:00
parent ed6aa75d63
commit 75cff7129c

View file

@ -442,7 +442,7 @@ class ActionBase:
data['stdout_lines'] = data.get('stdout', u'').splitlines()
# store the module invocation details back into the result
if self._task.async != 0:
if self._task.async == 0:
data['invocation'] = dict(
module_args = module_args,
module_name = module_name,