mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-04 07:24:00 -07:00
Fix lookup of parent attribute when parent doesn't have the attr
Fixes #14100
This commit is contained in:
parent
66104191d1
commit
07a9a54b0e
2 changed files with 9 additions and 18 deletions
|
@ -419,9 +419,5 @@ class Task(Base, Conditional, Taggable, Become):
|
|||
'''
|
||||
Override for the 'tags' getattr fetcher, used from Base.
|
||||
'''
|
||||
any_errors_fatal = self._attributes['any_errors_fatal']
|
||||
if hasattr(self, '_get_parent_attribute'):
|
||||
if self._get_parent_attribute('any_errors_fatal'):
|
||||
any_errors_fatal = True
|
||||
return any_errors_fatal
|
||||
return self._get_parent_attribute('any_errors_fatal')
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue