]> 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)
committerJean-Baptiste RANSY <jean-baptiste.ransy@alyseo.com>
Thu, 21 Mar 2013 10:59:40 +0000 (11:59 +0100)
commit4403230bbe8f39a19c38e58840bbb2283ccd808f
tree7a91a1757796f59fab3ebcae4975c05d5fd3352a
parent65e291054681e45d3160d995c5648b8311bc1a69
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
cinder/volume/drivers/coraid.py