Replace pvar usage with print_var
pvar is an abbreviation for print_var. For final code, print_var lends more
clarity.
Change-Id: Ibbb606ce10b2a1035eaf735c383758fb9a224149
Signed-off-by: Michael Walsh <micwalsh@us.ibm.com>
diff --git a/bin/obmc_ser_num b/bin/obmc_ser_num
index bbf43ec..4269e42 100755
--- a/bin/obmc_ser_num
+++ b/bin/obmc_ser_num
@@ -122,7 +122,7 @@
verify=False)
if resp.json()['status'] != 'ok':
json = resp.json()
- print_error_report("http request failed:\n" + sprint_var(command, 1))
+ print_error_report("http request failed:\n" + sprint_var(command))
raise Exception("Login failed.\n")
command = http_prefix + "xyz/openbmc_project/inventory/system"
@@ -130,7 +130,7 @@
resp = session.get(command, verify=False)
json = resp.json()
if json['status'] != 'ok':
- print_error_report("http request failed:\n" + sprint_var(command, 1))
+ print_error_report("http request failed:\n" + sprint_var(command))
raise Exception("http request failed.\n")
try:
@@ -139,7 +139,7 @@
print_error_report("Failed to find 'SerialNumber' key in the" +
" following data:\n" + sprint_var(json))
return False
- pvar(mch_ser_num, 0, 0, 0)
+ print_var(mch_ser_num, 0, 0, 0)
return True