From 860a58a16998c8e164cbec93606b10c5566fbab3 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Tue, 27 Feb 2018 12:11:26 -0500 Subject: [PATCH] Fix the error message on unsupported protocols It omitted the data for the string formatting. Change-Id: I4a7c75e48a60504554f5f01ce895d763534d51ac --- pyghmi/ipmi/oem/lenovo/imm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyghmi/ipmi/oem/lenovo/imm.py b/pyghmi/ipmi/oem/lenovo/imm.py index 3f33d441..e9e10d49 100644 --- a/pyghmi/ipmi/oem/lenovo/imm.py +++ b/pyghmi/ipmi/oem/lenovo/imm.py @@ -872,8 +872,8 @@ class XCCClient(IMMClient): rq['Url'] = url else: raise pygexc.UnsupportedFunctionality( - '{0} scheme is not supported on this system or ' - 'invalid url format') + '"{0}" scheme is not supported on this system or ' + 'invalid url format'.format(proto)) rt = self.wc.grab_json_response('/api/providers/rp_vm_remote_connect', json.dumps(rq)) if 'return' not in rt or rt['return'] != 0: