Decode output of fru print
Decodes bytes object of fru print to string, was failing
during an ilo inspection.
Change-Id: Ieed55ffca1e839ff5a5dfe523038ba03ea14d0d7
Closes-Bug: 1853210
(cherry picked from commit 83266ff678
)
This commit is contained in:
parent
80e4f247b8
commit
aeb5a56c92
|
@ -59,6 +59,9 @@ def _exec_ipmitool(driver_info, command):
|
|||
{'out': out, 'err': err, 'code': process.returncode})
|
||||
except Exception:
|
||||
pass
|
||||
if out:
|
||||
return out.decode()
|
||||
else:
|
||||
return out
|
||||
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@ NIC_FRU_OUT_TUPLE = ((
|
|||
"Product Name : HP Ethernet 1Gb 4-port 331FLR Adapter\n"
|
||||
"Product Part Number : 629135-B21\n"
|
||||
"Product Version : 00\n"
|
||||
"Product Serial : CN84170RX5"), None)
|
||||
"Product Serial : CN84170RX5").encode('ascii'), None)
|
||||
|
||||
NIC_FRU_OUT = (
|
||||
"Board Mfg Date : Mon Apr 28 23:16:00 2014\n"
|
||||
|
|
Loading…
Reference in New Issue