mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 13:52:54 +00:00
Fix lookup of parent attribute when parent doesn't have the attr
Fixes #14100
This commit is contained in:
@@ -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')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user