summaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
authorJose A. Rivera <jarrpa@redhat.com>2017-05-12 10:40:45 -0500
committerJose A. Rivera <jarrpa@redhat.com>2017-05-19 11:47:43 -0500
commitcd10742ac6f08961f3ddaf0216494a4d4dd31136 (patch)
treedc7630084a57bd15c2afb52cc7e51e7eae768e2b /roles
parent963c7c90af3358014faccd0eb60f3476d14985f4 (diff)
downloadopenshift-cd10742ac6f08961f3ddaf0216494a4d4dd31136.tar.gz
openshift-cd10742ac6f08961f3ddaf0216494a4d4dd31136.tar.bz2
openshift-cd10742ac6f08961f3ddaf0216494a4d4dd31136.tar.xz
openshift-cd10742ac6f08961f3ddaf0216494a4d4dd31136.zip
oc_process: Better error output on failed template() call
Signed-off-by: Jose A. Rivera <jarrpa@redhat.com>
Diffstat (limited to 'roles')
-rw-r--r--roles/lib_openshift/library/oc_process.py2
-rw-r--r--roles/lib_openshift/src/class/oc_process.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/roles/lib_openshift/library/oc_process.py b/roles/lib_openshift/library/oc_process.py
index 8e1ffe90f..f917b1426 100644
--- a/roles/lib_openshift/library/oc_process.py
+++ b/roles/lib_openshift/library/oc_process.py
@@ -1450,7 +1450,7 @@ class OCProcess(OpenShiftCLI):
if self._template is None:
results = self._process(self.name, False, self.params, self.data)
if results['returncode'] != 0:
- raise OpenShiftCLIError('Error processing template [%s].' % self.name)
+ raise OpenShiftCLIError('Error processing template [%s]: %s' %(self.name, results))
self._template = results['results']['items']
return self._template
diff --git a/roles/lib_openshift/src/class/oc_process.py b/roles/lib_openshift/src/class/oc_process.py
index eba9a43cd..62a6bd571 100644
--- a/roles/lib_openshift/src/class/oc_process.py
+++ b/roles/lib_openshift/src/class/oc_process.py
@@ -30,7 +30,7 @@ class OCProcess(OpenShiftCLI):
if self._template is None:
results = self._process(self.name, False, self.params, self.data)
if results['returncode'] != 0:
- raise OpenShiftCLIError('Error processing template [%s].' % self.name)
+ raise OpenShiftCLIError('Error processing template [%s]: %s' %(self.name, results))
self._template = results['results']['items']
return self._template