]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
CoraidDriver: typo in _login exception handler
authorJean-Baptiste RANSY <jean-baptiste.ransy@alyseo.com>
Thu, 21 Mar 2013 10:51:37 +0000 (11:51 +0100)
committerjohn-griffith <john.griffith@solidfire.com>
Sat, 23 Mar 2013 21:37:10 +0000 (15:37 -0600)
commit9d77ef85b8a58f3bca584c0820eb88f511ba94fb
tree5a403414fc856f6d1c37375d5f00685444f5e1df
parent407d9e5e95ad8a921231bfa81e903924c2617c34
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