diff options
author | Toshio Kuratomi <toshio@fedoraproject.org> | 2015-10-22 09:03:35 -0700 |
---|---|---|
committer | Toshio Kuratomi <toshio@fedoraproject.org> | 2015-10-22 09:03:35 -0700 |
commit | 75cff7129ca10548543926a7cab06e2700a72e77 (patch) | |
tree | 6c40ab429fc19b2ba1c5c456a98b471bcc34dec5 | |
parent | ed6aa75d635ca2dc95c02aa30aa24339854f6567 (diff) | |
download | ansible-invocation-fix.tar.gz |
Fix for invocation not being added to output.invocation-fix
We want invocation to be omitted when we are running async, not when we
aren't running async.
-rw-r--r-- | lib/ansible/plugins/action/__init__.py | 2 |
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, |