summaryrefslogtreecommitdiffstats
path: root/roles/lib_openshift/library/oc_route.py
diff options
context:
space:
mode:
authorKenny Woodson <kwoodson@redhat.com>2017-01-26 14:16:23 -0500
committerGitHub <noreply@github.com>2017-01-26 14:16:23 -0500
commit8f2b3f132bc6cd03640c31c0c33cffb01f80138c (patch)
tree6ec0b8b4caed6279c45d14f2979390468b7772bc /roles/lib_openshift/library/oc_route.py
parenta44270f3dfd2c4707138891cfc485e0a82e7dd7c (diff)
parentb05c1e3bb7f1cd66a326bb7784ec166c4db4395a (diff)
downloadopenshift-8f2b3f132bc6cd03640c31c0c33cffb01f80138c.tar.gz
openshift-8f2b3f132bc6cd03640c31c0c33cffb01f80138c.tar.bz2
openshift-8f2b3f132bc6cd03640c31c0c33cffb01f80138c.tar.xz
openshift-8f2b3f132bc6cd03640c31c0c33cffb01f80138c.zip
Merge pull request #3183 from kwoodson/oc_scale
Adding oc_scale to lib_openshift.
Diffstat (limited to 'roles/lib_openshift/library/oc_route.py')
-rw-r--r--roles/lib_openshift/library/oc_route.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/roles/lib_openshift/library/oc_route.py b/roles/lib_openshift/library/oc_route.py
index f5d6c3dfe..fb51367fc 100644
--- a/roles/lib_openshift/library/oc_route.py
+++ b/roles/lib_openshift/library/oc_route.py
@@ -846,12 +846,11 @@ class OpenShiftCLI(object):
cmd = ['get', resource]
if selector:
cmd.append('--selector=%s' % selector)
+ elif rname:
+ cmd.append(rname)
cmd.extend(['-o', 'json'])
- if rname:
- cmd.append(rname)
-
rval = self.openshift_cmd(cmd, output=True)
# Ensure results are retuned in an array