summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrenton Leanhardt <bleanhar@redhat.com>2015-09-28 12:58:35 -0400
committerBrenton Leanhardt <bleanhar@redhat.com>2015-09-28 12:58:35 -0400
commitd865b2a9034130ec85a14638e0350b115401c94c (patch)
tree33c943d808aa5293848fd57117f044f75ff4a77d
parent7754d298916e3e5722b664acf489ed0662b47155 (diff)
parent9646ab206e5984ede420500343ccba5b81dd6187 (diff)
downloadopenshift-d865b2a9034130ec85a14638e0350b115401c94c.tar.gz
openshift-d865b2a9034130ec85a14638e0350b115401c94c.tar.bz2
openshift-d865b2a9034130ec85a14638e0350b115401c94c.tar.xz
openshift-d865b2a9034130ec85a14638e0350b115401c94c.zip
Merge pull request #624 from abutcher/merge-facts
Avoid attribute error in merge facts
-rwxr-xr-xroles/openshift_facts/library/openshift_facts.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/openshift_facts/library/openshift_facts.py b/roles/openshift_facts/library/openshift_facts.py
index 991b8da66..f708f9bac 100755
--- a/roles/openshift_facts/library/openshift_facts.py
+++ b/roles/openshift_facts/library/openshift_facts.py
@@ -644,7 +644,7 @@ def merge_facts(orig, new):
facts = dict()
for key, value in orig.iteritems():
if key in new:
- if isinstance(value, dict):
+ if isinstance(value, dict) and isinstance(new[key], dict):
facts[key] = merge_facts(value, new[key])
else:
facts[key] = copy.copy(new[key])