summaryrefslogtreecommitdiffstats
path: root/roles/lib_openshift/library/oc_scale.py
diff options
context:
space:
mode:
authorKenny Woodson <kwoodson@redhat.com>2017-01-27 11:16:09 -0500
committerGitHub <noreply@github.com>2017-01-27 11:16:09 -0500
commitb31b6e3202e03394e8d8caf7813ee722d916d59e (patch)
tree025e3daf61fe2ed5ca9302923467318e1dd86e68 /roles/lib_openshift/library/oc_scale.py
parentd2a0850decdf9da8e8f050d7ab59afe194dae196 (diff)
parent8a95bb14d811f0e7fbb9f6504d1b66f78adfd877 (diff)
downloadopenshift-b31b6e3202e03394e8d8caf7813ee722d916d59e.tar.gz
openshift-b31b6e3202e03394e8d8caf7813ee722d916d59e.tar.bz2
openshift-b31b6e3202e03394e8d8caf7813ee722d916d59e.tar.xz
openshift-b31b6e3202e03394e8d8caf7813ee722d916d59e.zip
Merge pull request #3206 from kwoodson/oc_scale_fix
Adding fix for when the resource does not exist. Added test cases.
Diffstat (limited to 'roles/lib_openshift/library/oc_scale.py')
-rw-r--r--roles/lib_openshift/library/oc_scale.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/roles/lib_openshift/library/oc_scale.py b/roles/lib_openshift/library/oc_scale.py
index 6ae85e220..1259c5711 100644
--- a/roles/lib_openshift/library/oc_scale.py
+++ b/roles/lib_openshift/library/oc_scale.py
@@ -1644,6 +1644,8 @@ class OCScale(OpenShiftCLI):
state = params['state']
api_rval = oc_scale.get()
+ if api_rval['returncode'] != 0:
+ return {'failed': True, 'msg': api_rval}
#####
# Get