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_scale.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'roles/lib_openshift/library/oc_scale.py') diff --git a/roles/lib_openshift/library/oc_scale.py b/roles/lib_openshift/library/oc_scale.py index 56e4e38f7..98f1d94a7 100644 --- a/roles/lib_openshift/library/oc_scale.py +++ b/roles/lib_openshift/library/oc_scale.py @@ -1032,9 +1032,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.3