summaryrefslogtreecommitdiffstats
path: root/roles/openshift_cli
diff options
context:
space:
mode:
authorScott Dodson <sdodson@redhat.com>2017-12-07 13:53:36 -0500
committerGitHub <noreply@github.com>2017-12-07 13:53:36 -0500
commit37ffebc86cd4fe89373542285b40d92f61696270 (patch)
tree87ccd2572fd46d9934085bc871ac2705049d04af /roles/openshift_cli
parent65cb13e74918d74cb9e8d4854f271a4d35177ad2 (diff)
parent13ca9bbd624b334cab6a7403764e9bba110fc8b3 (diff)
downloadopenshift-37ffebc86cd4fe89373542285b40d92f61696270.tar.gz
openshift-37ffebc86cd4fe89373542285b40d92f61696270.tar.bz2
openshift-37ffebc86cd4fe89373542285b40d92f61696270.tar.xz
openshift-37ffebc86cd4fe89373542285b40d92f61696270.zip
Merge pull request #6380 from sdodson/oc-adm
Remove all uses of openshift.common.admin_binary
Diffstat (limited to 'roles/openshift_cli')
-rw-r--r--roles/openshift_cli/library/openshift_container_binary_sync.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/roles/openshift_cli/library/openshift_container_binary_sync.py b/roles/openshift_cli/library/openshift_container_binary_sync.py
index 08045794a..440b8ec28 100644
--- a/roles/openshift_cli/library/openshift_container_binary_sync.py
+++ b/roles/openshift_cli/library/openshift_container_binary_sync.py
@@ -27,7 +27,7 @@ class BinarySyncError(Exception):
# pylint: disable=too-few-public-methods,too-many-instance-attributes
class BinarySyncer(object):
"""
- Syncs the openshift, oc, oadm, and kubectl binaries/symlinks out of
+ Syncs the openshift, oc, and kubectl binaries/symlinks out of
a container onto the host system.
"""
@@ -108,7 +108,10 @@ class BinarySyncer(object):
# Ensure correct symlinks created:
self._sync_symlink('kubectl', 'openshift')
- self._sync_symlink('oadm', 'openshift')
+
+ # Remove old oadm binary
+ if os.path.exists(os.path.join(self.bin_dir, 'oadm')):
+ os.remove(os.path.join(self.bin_dir, 'oadm'))
def _sync_symlink(self, binary_name, link_to):
""" Ensure the given binary name exists and links to the expected binary. """