summaryrefslogtreecommitdiffstats
path: root/roles/openshift_facts/library
diff options
context:
space:
mode:
authorSamuel Munilla <smunilla@redhat.com>2016-03-10 16:08:47 -0500
committerSamuel Munilla <smunilla@redhat.com>2016-03-10 16:08:47 -0500
commit7415f01e92f751a802db6a555dd02a56c01f590e (patch)
treea66ea6625672a948b136edc4f27fa25415a71b7c /roles/openshift_facts/library
parentfd182b10d30492cd9f29ea61f595b84af33a31c7 (diff)
downloadopenshift-7415f01e92f751a802db6a555dd02a56c01f590e.tar.gz
openshift-7415f01e92f751a802db6a555dd02a56c01f590e.tar.bz2
openshift-7415f01e92f751a802db6a555dd02a56c01f590e.tar.xz
openshift-7415f01e92f751a802db6a555dd02a56c01f590e.zip
openshift_facts: Safe cast additional bools
Diffstat (limited to 'roles/openshift_facts/library')
-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 566a5ef8c..98e20288b 100755
--- a/roles/openshift_facts/library/openshift_facts.py
+++ b/roles/openshift_facts/library/openshift_facts.py
@@ -1032,7 +1032,7 @@ def merge_facts(orig, new, additive_facts_to_overwrite, protected_facts_to_overw
# ha (bool) can not change unless it has been passed
# as a protected fact to overwrite.
if key == 'ha':
- if bool(value) != bool(new[key]):
+ if safe_get_bool(value) != safe_get_bool(new[key]):
module.fail_json(msg='openshift_facts received a different value for openshift.master.ha')
else:
facts[key] = value