Browse Source

Fix wrapper pathing for non-root user install.

Andrew Butcher 9 years ago
parent
commit
e3a406f47c
1 changed files with 4 additions and 0 deletions
  1. 4 0
      roles/openshift_facts/library/openshift_facts.py

+ 4 - 0
roles/openshift_facts/library/openshift_facts.py

@@ -1031,6 +1031,10 @@ 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']:
+        facts['common']['admin_binary'] = '/usr/local/bin/oadm'
+        facts['common']['client_binary'] = '/usr/local/bin/oc'
+
     return facts