The patch fixes issues when desassigning target to initiators
in the terminate_connection method. The method now takes
the right parameter coming from provider location.
Change-Id: I2ea1ac7f46e3a24a6493af8eba46a113126e1117
Fixes: bug #1153968
longer access it.
"""
initiator_name = connector['initiator']
+ provider_location = volume['provider_location']
#DesAssigning target to initiators
- wt_idmethod = self._conn_wmi.WT_IDMethod(HostName=volume['name'],
+ wt_idmethod = self._conn_wmi.WT_IDMethod(HostName=provider_location,
Method=4,
- Value=initiator_name)
+ Value=initiator_name)[0]
wt_idmethod.Delete_()
def create_volume(self, volume):