]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Improve provider_location cleanup code for RBD.
authorAdam Gandelman <adam.gandelman@canonical.com>
Wed, 28 Nov 2012 01:51:26 +0000 (17:51 -0800)
committerAdam Gandelman <adam.gandelman@canonical.com>
Wed, 28 Nov 2012 18:11:41 +0000 (10:11 -0800)
commit940f363dafd8a511e0c37b8a1ce1370e36c5a835
treeb23856069278670b9106516ac8fbdf10c8ad87ee
parent7f34ba39abcaa4f885d7448b427148fab4e49892
Improve provider_location cleanup code for RBD.

The RBD driver does not make use of the 'provider_location' field
but the current cleanup code assumes it does.  Ensure the field
is in use before testing whether or not it needs fixing.

Fixes bug 1083818.

Change-Id: Id6ff85101f85e70575ba244c2df7aca0196cf224
(cherry picked from commit d030c5b10e9e8d73d967562259e7db6146347108)
cinder/volume/manager.py