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.
pull/12878/head
Toshio Kuratomi 9 years ago
parent ed6aa75d63
commit 75cff7129c

@ -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,

Loading…
Cancel
Save