Commit fbf4cafa by Brian Coca

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

fixes #12683
parent ec02b255
...@@ -111,7 +111,7 @@ class CallbackBase: ...@@ -111,7 +111,7 @@ class CallbackBase:
if '_ansible_no_log' in result and result['_ansible_no_log']: if '_ansible_no_log' in result and result['_ansible_no_log']:
item = "(censored due to no_log)" item = "(censored due to no_log)"
else: else:
item = result['item'] item = getattr(result, 'item')
return item return item
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment