From 9d77ef85b8a58f3bca584c0820eb88f511ba94fb Mon Sep 17 00:00:00 2001 From: Jean-Baptiste RANSY Date: Thu, 21 Mar 2013 11:51:37 +0100 Subject: [PATCH] CoraidDriver: typo in _login exception handler In cinder/volume/drivers/coraid.py, _login method, if login is unsuccessful, we try to get the message from an undefined object "response". Instead we should be getting it from "reply". - errmsg = response.get('message', '') + errmsg = reply.get('message', '') Fixes bug 1157499 Change-Id: Ifd047ced6b40f49881e81d4e73189d9bd216c903 (cherry picked from commit 4403230bbe8f39a19c38e58840bbb2283ccd808f) --- cinder/volume/drivers/coraid.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cinder/volume/drivers/coraid.py b/cinder/volume/drivers/coraid.py index 8471a0b66..050cff014 100644 --- a/cinder/volume/drivers/coraid.py +++ b/cinder/volume/drivers/coraid.py @@ -98,7 +98,7 @@ class CoraidRESTClient(object): LOG.debug(msg % dict(session=self.session)) return True else: - errmsg = response.get('message', '') + errmsg = reply.get('message', '') msg = _('Message : %(message)s') raise CoraidESMException(msg % dict(message=errmsg)) return True -- 2.45.2