summaryrefslogtreecommitdiffstats
path: root/roles/lib_openshift/library/oc_route.py
diff options
context:
space:
mode:
Diffstat (limited to 'roles/lib_openshift/library/oc_route.py')
-rw-r--r--roles/lib_openshift/library/oc_route.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/roles/lib_openshift/library/oc_route.py b/roles/lib_openshift/library/oc_route.py
index de186ded7..04301a177 100644
--- a/roles/lib_openshift/library/oc_route.py
+++ b/roles/lib_openshift/library/oc_route.py
@@ -951,14 +951,14 @@ class OpenShiftCLI(object):
try:
rval['results'] = json.loads(stdout)
except ValueError as err:
- if "No JSON object could be decoded" in str(err):
- err = str(err)
+ if "No JSON object could be decoded" in err.args:
+ err = err.args
elif output_type == 'raw':
rval['results'] = stdout
if self.verbose:
- print(stdout)
- print(stderr)
+ print("STDOUT: {0}".format(stdout))
+ print("STDERR: {0}".format(stderr))
if err:
rval.update({"err": err,