diff --git a/lib/ansible/callbacks.py b/lib/ansible/callbacks.py index 0b36a62ab3..a3f46fc9d4 100755 --- a/lib/ansible/callbacks.py +++ b/lib/ansible/callbacks.py @@ -151,7 +151,7 @@ class PlaybookRunnerCallbacks(DefaultRunnerCallbacks): print "failed: [%s] => %s => %s\n" % (host, invocation, utils.smjson(results)) def on_ok(self, host, host_result): - invocation = host_result.get('invocation',None) + invocation = host_result.get('invocation','') if invocation.startswith('async_status'): pass elif not invocation or invocation.startswith('setup '):