summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornitzmahone <mdavis@ansible.com>2016-06-23 14:10:44 -0700
committernitzmahone <mdavis@ansible.com>2016-06-23 14:11:07 -0700
commitac04ffb9b1c9b2dc1876345758119b3376b67f9e (patch)
tree5a687dfa7ed688221cb8e5398586be0484c37eae
parentc117b9d79b6b79195c04eed87c66640287624943 (diff)
downloadansible-ac04ffb9b1c9b2dc1876345758119b3376b67f9e.tar.gz
apply @zazard's fix to parent attribute lookup
-rw-r--r--lib/ansible/playbook/base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ansible/playbook/base.py b/lib/ansible/playbook/base.py
index be8b578a32..20fe442a5a 100644
--- a/lib/ansible/playbook/base.py
+++ b/lib/ansible/playbook/base.py
@@ -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