mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 13:52:54 +00:00
Support for specifying item label in a loop (#17294)
This commit is contained in:
committed by
Brian Coca
parent
61e7c3af1a
commit
f65a3ce547
@@ -174,6 +174,8 @@ class CallbackBase:
|
||||
def _get_item(self, result):
|
||||
if result.get('_ansible_no_log', False):
|
||||
item = "(censored due to no_log)"
|
||||
elif result.get('_ansible_item_label', False):
|
||||
item = result.get('_ansible_item_label')
|
||||
else:
|
||||
item = result.get('item', None)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user