From 317417987faeb62018150b7c8fa99e0373c205e0 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Thu, 12 Sep 2013 10:08:14 -0400 Subject: [PATCH] Correct concatenation of string and int object Straightforward change, a mistake was made with a string and an int was concatenated. Change-Id: I96de0f32b387e524c90d42acb5dcf6c808448b14 --- pyghmi/ipmi/private/session.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyghmi/ipmi/private/session.py b/pyghmi/ipmi/private/session.py index ca656afa..124308a8 100644 --- a/pyghmi/ipmi/private/session.py +++ b/pyghmi/ipmi/private/session.py @@ -104,7 +104,7 @@ def get_ipmi_error(response, suffix=""): elif code in constants.ipmi_completion_codes: res = constants.ipmi_completion_codes[code] + suffix else: - res = "Unknown code " + code + " encountered" + res = "Unknown code 0x%2x encountered" % code return res