mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-28 03:00:23 -07:00
corrects previous fix to deal with missing item key in results dict
This commit is contained in:
parent
abf2e13955
commit
b9d54e9a01
1 changed files with 1 additions and 1 deletions
|
@ -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 = getattr(result, 'item')
|
item = get(result, 'item', None)
|
||||||
|
|
||||||
return item
|
return item
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue