summaryrefslogtreecommitdiffstats
path: root/roles/openshift_facts/library
diff options
context:
space:
mode:
authorAndrew Butcher <abutcher@redhat.com>2016-03-02 22:08:28 -0500
committerAndrew Butcher <abutcher@redhat.com>2016-03-02 23:49:22 -0500
commitb8334348d07473c426cb1441ffbddbf743b352b1 (patch)
tree5bc4c5061794ed1d25057fbcf6a6557f24c6627b /roles/openshift_facts/library
parent7874cd4a233669fa86f20f05bc3cd199d8b87935 (diff)
downloadopenshift-b8334348d07473c426cb1441ffbddbf743b352b1.tar.gz
openshift-b8334348d07473c426cb1441ffbddbf743b352b1.tar.bz2
openshift-b8334348d07473c426cb1441ffbddbf743b352b1.tar.xz
openshift-b8334348d07473c426cb1441ffbddbf743b352b1.zip
Check for is_containerized value when setting binary locations.
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 0f25881f1..7b2715bb0 100755
--- a/roles/openshift_facts/library/openshift_facts.py
+++ b/roles/openshift_facts/library/openshift_facts.py
@@ -1090,7 +1090,7 @@ def set_container_facts_if_unset(facts):
if 'ovs_image' not in facts['node']:
facts['node']['ovs_image'] = ovs_image
- if facts['common']['is_containerized']:
+ if bool(strtobool(str(facts['common']['is_containerized']))):
facts['common']['admin_binary'] = '/usr/local/bin/oadm'
facts['common']['client_binary'] = '/usr/local/bin/oc'