From 321ed53e3ac0bdf0ae2e509ed3311c7e04d6354f Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Mon, 23 Apr 2012 21:00:28 -0400 Subject: [PATCH] Fetch module doesn't set invocation parameter as it invokes nothing, so don't let that be an error. --- lib/ansible/callbacks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/callbacks.py b/lib/ansible/callbacks.py index 0b36a62ab33..a3f46fc9d4a 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 '):