Update lib/ansible/playbook/task.py

Co-authored-by: Sviatoslav Sydorenko (Святослав Сидоренко) <wk.cvs.github@sydorenko.org.ua>
pull/83470/head
Brian Coca 5 months ago committed by GitHub
parent 2273201a18
commit 50be9a97bf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -456,13 +456,8 @@ class Task(Base, Conditional, Taggable, CollectionSearch, Notifiable, Delegatabl
self._parent.set_loader(loader)
def get_parent_block_name(self):
name = ''
parent_block = self.get_first_parent_block(static=True)
if parent_block:
name = getattr(parent_block, 'name', '')
return name
return getattr(parent_block, 'name', '')
def _get_parent_attribute(self, attr, omit=False):
'''

Loading…
Cancel
Save