Merge "Fix exception in dothill iSCSI driver's terminate_connection"

This commit is contained in:
Jenkins 2017-07-21 00:14:14 +00:00 committed by Gerrit Code Review
commit dd463feec7
1 changed files with 2 additions and 1 deletions

View File

@ -151,7 +151,8 @@ class DotHillISCSIDriver(cinder.volume.driver.ISCSIDriver):
self.common.client_logout()
def terminate_connection(self, volume, connector, **kwargs):
self.common.unmap_volume(volume, connector, 'initiator')
if type(connector) == dict and 'initiator' in connector:
self.common.unmap_volume(volume, connector, 'initiator')
def get_volume_stats(self, refresh=False):
stats = self.common.get_volume_stats(refresh)