]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Handle missing 'provider_location' in rm_export.
authorDan Prince <dprince@redhat.com>
Fri, 7 Sep 2012 02:52:35 +0000 (22:52 -0400)
committerDan Prince <dprince@redhat.com>
Fri, 7 Sep 2012 02:52:35 +0000 (22:52 -0400)
commit42cfb8fbb29577e1a0ab98ec7d8614c270f241ae
treebce68f79979416542796cd62626a9745b745b4fb
parent2cd6a4d68f0faf592b5e2185f792afae27b438d9
Handle missing 'provider_location' in rm_export.

Updates the remove_export function in the ISCSIDriver so that
it handles the case where provider_location isn't set on
a volume. This can occur if a volume is created but not exported.

This was a regression from a previous commit
(9785963c841aff5ea1c159da81f93c2bf62c70c6) which changed the way iscsi
targets are created/deleted.

Fixes LP Bug #1046484.

Change-Id: Ie762b092dd2a84fe4f3b72c46c03a97ae67c53b7
cinder/volume/driver.py