From 75cff7129ca10548543926a7cab06e2700a72e77 Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Thu, 22 Oct 2015 09:03:35 -0700 Subject: 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. --- lib/ansible/plugins/action/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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, -- cgit v1.2.3