summaryrefslogtreecommitdiffstats
path: root/roles/lib_openshift
diff options
context:
space:
mode:
authorKenny Woodson <kwoodson@redhat.com>2017-04-06 15:49:44 -0400
committerKenny Woodson <kwoodson@redhat.com>2017-04-06 15:49:44 -0400
commit02668c9ca3717cfe246f374a7d0e8303e06cc97d (patch)
tree52da4aaceb831eb98b2bc10427905678890c4fa6 /roles/lib_openshift
parentff988ba7244379166b6ac63c2c281328f64fe141 (diff)
downloadopenshift-02668c9ca3717cfe246f374a7d0e8303e06cc97d.tar.gz
openshift-02668c9ca3717cfe246f374a7d0e8303e06cc97d.tar.bz2
openshift-02668c9ca3717cfe246f374a7d0e8303e06cc97d.tar.xz
openshift-02668c9ca3717cfe246f374a7d0e8303e06cc97d.zip
Fixed a bug when oc command fails.
Diffstat (limited to 'roles/lib_openshift')
-rw-r--r--roles/lib_openshift/library/oc_adm_ca_server_cert.py2
-rw-r--r--roles/lib_openshift/src/class/oc_adm_ca_server_cert.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/roles/lib_openshift/library/oc_adm_ca_server_cert.py b/roles/lib_openshift/library/oc_adm_ca_server_cert.py
index 617d8590a..c69f5deda 100644
--- a/roles/lib_openshift/library/oc_adm_ca_server_cert.py
+++ b/roles/lib_openshift/library/oc_adm_ca_server_cert.py
@@ -1558,7 +1558,7 @@ class CAServerCert(OpenShiftCLI):
api_rval = server_cert.create()
if api_rval['returncode'] != 0:
- return {'Failed': True, 'msg': api_rval}
+ return {'failed': True, 'msg': api_rval}
return {'changed': True, 'results': api_rval, 'state': state}
diff --git a/roles/lib_openshift/src/class/oc_adm_ca_server_cert.py b/roles/lib_openshift/src/class/oc_adm_ca_server_cert.py
index 018ce8d42..f954f40ef 100644
--- a/roles/lib_openshift/src/class/oc_adm_ca_server_cert.py
+++ b/roles/lib_openshift/src/class/oc_adm_ca_server_cert.py
@@ -127,7 +127,7 @@ class CAServerCert(OpenShiftCLI):
api_rval = server_cert.create()
if api_rval['returncode'] != 0:
- return {'Failed': True, 'msg': api_rval}
+ return {'failed': True, 'msg': api_rval}
return {'changed': True, 'results': api_rval, 'state': state}