summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorToshio Kuratomi <toshio@fedoraproject.org>2015-10-22 18:03:35 +0200
committerToshio Kuratomi <toshio@fedoraproject.org>2015-10-22 18:03:35 +0200
commit75cff7129ca10548543926a7cab06e2700a72e77 (patch)
tree6c40ab429fc19b2ba1c5c456a98b471bcc34dec5 /lib
parentAdd parsing test to travis to catch that invocation is missing (diff)
downloadansible-75cff7129ca10548543926a7cab06e2700a72e77.tar.xz
ansible-75cff7129ca10548543926a7cab06e2700a72e77.zip
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.
Diffstat (limited to 'lib')
-rw-r--r--lib/ansible/plugins/action/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ansible/plugins/action/__init__.py b/lib/ansible/plugins/action/__init__.py
index 6e3cb6f3f8..6d83e5afd8 100644
--- a/lib/ansible/plugins/action/__init__.py
+++ b/lib/ansible/plugins/action/__init__.py
@@ -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,