Fix lookup of parent attribute when parent doesn't have the attr

Fixes #14100
This commit is contained in:
James Cammarata 2016-01-26 13:10:23 -05:00
commit 07a9a54b0e
2 changed files with 9 additions and 18 deletions

View file

@ -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')