on skipped you 'might' not have an item, changed to getattr to avoid keyerror
fixes #12683
This commit is contained in:
parent
ec02b255c3
commit
fbf4cafab5
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 = result['item']
|
item = getattr(result, 'item')
|
||||||
|
|
||||||
return item
|
return item
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue