From ac04ffb9b1c9b2dc1876345758119b3376b67f9e Mon Sep 17 00:00:00 2001 From: nitzmahone Date: Thu, 23 Jun 2016 14:10:44 -0700 Subject: [PATCH] apply @zazard's fix to parent attribute lookup --- lib/ansible/playbook/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/playbook/base.py b/lib/ansible/playbook/base.py index be8b578a320..20fe442a5a5 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