Update vscsi to support hdisk removal

The disconnect volume code path requires some updated to support
hdisk removal.

Change-Id: Icff111ce1de8eaef2fc67caca38fe5a407645b1a
This commit is contained in:
dwarcher 2015-04-17 23:25:11 -07:00
parent 0fc5feea73
commit 2712f79a0c

View File

@ -216,8 +216,8 @@ class VscsiVolumeAdapter(v_driver.FibreChannelVolumeAdapter):
partition_id, device_name)
# TODO(IBM): New method coming to support remove hdisk
if CONF.enable_remove_hdisk:
hdisk.remove_hdisk(adapter, CONF.host_display_name,
if CONF.enable_hdisk_removal:
hdisk.remove_hdisk(adapter, CONF.host,
device_name, vio_wrap.uuid)
# Disconnect volume complete, now remove key