on skipped you 'might' not have an item, changed to getattr to avoid keyerror

fixes #12683
pull/12696/head
Brian Coca 9 years ago
parent ec02b255c3
commit fbf4cafab5

@ -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 = result['item']
item = getattr(result, 'item')
return item

Loading…
Cancel
Save