diff options
author | Samuel Munilla <smunilla@redhat.com> | 2016-03-10 16:08:47 -0500 |
---|---|---|
committer | Samuel Munilla <smunilla@redhat.com> | 2016-03-10 16:08:47 -0500 |
commit | 7415f01e92f751a802db6a555dd02a56c01f590e (patch) | |
tree | a66ea6625672a948b136edc4f27fa25415a71b7c /roles | |
parent | fd182b10d30492cd9f29ea61f595b84af33a31c7 (diff) | |
download | openshift-7415f01e92f751a802db6a555dd02a56c01f590e.tar.gz openshift-7415f01e92f751a802db6a555dd02a56c01f590e.tar.bz2 openshift-7415f01e92f751a802db6a555dd02a56c01f590e.tar.xz openshift-7415f01e92f751a802db6a555dd02a56c01f590e.zip |
openshift_facts: Safe cast additional bools
Diffstat (limited to 'roles')
-rwxr-xr-x | roles/openshift_facts/library/openshift_facts.py | 2 |
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 |