mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
apply @zazard's fix to parent attribute lookup
This commit is contained in:
parent
c117b9d79b
commit
ac04ffb9b1
1 changed files with 1 additions and 1 deletions
|
@ -129,7 +129,7 @@ class Base:
|
|||
value = None
|
||||
value_found = False
|
||||
|
||||
if (value is None or not value_found) and hasattr(self, '_get_parent_attribute'):
|
||||
if not value_found and hasattr(self, '_get_parent_attribute'):
|
||||
value = self._get_parent_attribute(prop_name)
|
||||
value_found = True
|
||||
|
||||
|
|
Loading…
Reference in a new issue