Merge "Py3 Fixes"
This commit is contained in:
commit
8814ec7198
|
@ -377,12 +377,12 @@ def get_mon_map(service):
|
||||||
try:
|
try:
|
||||||
return json.loads(mon_status)
|
return json.loads(mon_status)
|
||||||
except ValueError as v:
|
except ValueError as v:
|
||||||
log("Unable to parse mon_status json: {}. Error: {}".format(
|
log("Unable to parse mon_status json: {}. Error: {}"
|
||||||
mon_status, v.message))
|
.format(mon_status, str(v)))
|
||||||
raise
|
raise
|
||||||
except CalledProcessError as e:
|
except CalledProcessError as e:
|
||||||
log("mon_status command failed with message: {}".format(
|
log("mon_status command failed with message: {}"
|
||||||
e.message))
|
.format(str(e)))
|
||||||
raise
|
raise
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -377,12 +377,12 @@ def get_mon_map(service):
|
||||||
try:
|
try:
|
||||||
return json.loads(mon_status)
|
return json.loads(mon_status)
|
||||||
except ValueError as v:
|
except ValueError as v:
|
||||||
log("Unable to parse mon_status json: {}. Error: {}".format(
|
log("Unable to parse mon_status json: {}. Error: {}"
|
||||||
mon_status, v.message))
|
.format(mon_status, str(v)))
|
||||||
raise
|
raise
|
||||||
except CalledProcessError as e:
|
except CalledProcessError as e:
|
||||||
log("mon_status command failed with message: {}".format(
|
log("mon_status command failed with message: {}"
|
||||||
e.message))
|
.format(str(e)))
|
||||||
raise
|
raise
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue