mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Revert "Properly look for parent become attribute"
This reverts commit 1b46a422aa.
This commit is contained in:
@@ -106,11 +106,10 @@ class Become:
|
||||
'''
|
||||
Override for the 'become' getattr fetcher, used from Base.
|
||||
'''
|
||||
value = self._attributes['become']
|
||||
if hasattr(self, '_get_parent_attribute'):
|
||||
if self._get_parent_attribute('become'):
|
||||
return True
|
||||
return value
|
||||
return self._get_parent_attribute('become')
|
||||
else:
|
||||
return self._attributes['become']
|
||||
|
||||
def _get_attr_become_method(self):
|
||||
'''
|
||||
|
||||
@@ -417,7 +417,7 @@ class Task(Base, Conditional, Taggable, Become):
|
||||
|
||||
def _get_attr_any_errors_fatal(self):
|
||||
'''
|
||||
Override for the 'any_errors_fatal' getattr fetcher, used from Base.
|
||||
Override for the 'tags' getattr fetcher, used from Base.
|
||||
'''
|
||||
any_errors_fatal = self._attributes['any_errors_fatal']
|
||||
if hasattr(self, '_get_parent_attribute'):
|
||||
|
||||
Reference in New Issue
Block a user