Fetch module doesn't set invocation parameter as it invokes nothing, so don't let that be an error.

pull/209/merge
Michael DeHaan 13 years ago
parent 39f912899f
commit 321ed53e3a

@ -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 '):

Loading…
Cancel
Save