diff options
author | Kenny Woodson <kwoodson@redhat.com> | 2017-01-26 14:16:23 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-26 14:16:23 -0500 |
commit | 8f2b3f132bc6cd03640c31c0c33cffb01f80138c (patch) | |
tree | 6ec0b8b4caed6279c45d14f2979390468b7772bc /roles/lib_openshift/library/oc_edit.py | |
parent | a44270f3dfd2c4707138891cfc485e0a82e7dd7c (diff) | |
parent | b05c1e3bb7f1cd66a326bb7784ec166c4db4395a (diff) | |
download | openshift-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_edit.py')
-rw-r--r-- | roles/lib_openshift/library/oc_edit.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/roles/lib_openshift/library/oc_edit.py b/roles/lib_openshift/library/oc_edit.py index 2338d5e8e..ad158e56a 100644 --- a/roles/lib_openshift/library/oc_edit.py +++ b/roles/lib_openshift/library/oc_edit.py @@ -842,12 +842,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 |