]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Add error handling to _connect function in PureISCSIDriver
authorDaniel Wilson <daniel.wilson@purestorage.com>
Wed, 17 Dec 2014 20:05:44 +0000 (12:05 -0800)
committerDaniel Wilson <daniel.wilson@purestorage.com>
Fri, 19 Dec 2014 05:11:03 +0000 (21:11 -0800)
commit4da33ea23319b16b8e81ee0413b0c251a444d669
tree11b40e037e7e495fd2e76f236d173c13af855662
parentd1b89778f97fe235bef68a81215249ea590f327b
Add error handling to _connect function in PureISCSIDriver

The driver was throwing an exception when trying to connect a volume
to a host when they were already connected.  This change catches the
exception and looks up the existing connection information to use as
a return value.

Change-Id: Id0e6b1d3c3cd1e51745e97f99eef88a15e285526
Closes-Bug:  1403631
cinder/tests/test_pure.py
cinder/volume/drivers/pure.py