mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 03:41:25 -07:00
Support for specifying item label in a loop (#17294)
This commit is contained in:
parent
61e7c3af1a
commit
f65a3ce547
3 changed files with 9 additions and 0 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue