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,