From b1b2ba969db769263eae85b6c69f4cd9197f155c Mon Sep 17 00:00:00 2001 From: Kenny Woodson Date: Thu, 16 Mar 2017 13:14:04 -0400 Subject: Fixing variable naming for 35 scoping. --- roles/lib_openshift/library/oc_env.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'roles/lib_openshift/library/oc_env.py') diff --git a/roles/lib_openshift/library/oc_env.py b/roles/lib_openshift/library/oc_env.py index a1994b0f1..3088ea947 100644 --- a/roles/lib_openshift/library/oc_env.py +++ b/roles/lib_openshift/library/oc_env.py @@ -1045,9 +1045,9 @@ class OpenShiftCLI(object): if output_type == 'json': try: rval['results'] = json.loads(stdout) - except ValueError as err: - if "No JSON object could be decoded" in err.args: - err = err.args + except ValueError as verr: + if "No JSON object could be decoded" in verr.args: + err = verr.args elif output_type == 'raw': rval['results'] = stdout -- cgit v1.2.1