corrects previous fix to deal with missing item key in results dict

This commit is contained in:
Brian Coca 2015-10-09 13:01:02 -04:00
parent abf2e13955
commit b9d54e9a01

View file

@ -111,7 +111,7 @@ class CallbackBase:
if '_ansible_no_log' in result and result['_ansible_no_log']:
item = "(censored due to no_log)"
else:
item = getattr(result, 'item')
item = get(result, 'item', None)
return item