2
0
mirror of https://opendev.org/x/pyghmi synced 2026-05-13 09:54:20 +00:00

Fix string formatting

Error string was incorrectly trying to use '+' to
add number into the message.  Fix by using format

Change-Id: Iedc83383ffa4770b28538895369c9b3d58bb5bad
This commit is contained in:
Jarrod Johnson
2019-02-26 10:24:50 -05:00
parent 1575928d03
commit c8135688be
+1 -1
View File
@@ -1519,7 +1519,7 @@ class XCCClient(IMMClient):
if not firmtype:
raise Exception('Unknown firmware description returned: ' + repr(
rsp['items'][0]) + ' last verify return was: ' + repr(
verifyuploadfilersp) + ' with code ' + status)
verifyuploadfilersp) + ' with code {0}'.format(status))
if firmtype not in (
'TDM', 'WINDOWS DRIV', 'LINUX DRIVER', 'UEFI', 'IMM'):
# adapter firmware