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:
parent
ed6aa75d63
commit
75cff7129c
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue