From c8135688be60dd1d6768a875220f8d570cf1881d Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Tue, 26 Feb 2019 10:24:50 -0500 Subject: [PATCH] Fix string formatting Error string was incorrectly trying to use '+' to add number into the message. Fix by using format Change-Id: Iedc83383ffa4770b28538895369c9b3d58bb5bad --- pyghmi/ipmi/oem/lenovo/imm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyghmi/ipmi/oem/lenovo/imm.py b/pyghmi/ipmi/oem/lenovo/imm.py index 2f864ab8..ebafd633 100644 --- a/pyghmi/ipmi/oem/lenovo/imm.py +++ b/pyghmi/ipmi/oem/lenovo/imm.py @@ -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