Fix exception in dothill iSCSI driver's terminate_connection
The test_force_detach_volume test was causing terminate_connection to be
called with no connector, and the iSCSI driver didn't have an
appropriate check for this condition, causing the CI to fail.
@@ -153,6 +153,7 @@ class DotHillISCSIDriver(cinder.volume.driver.ISCSIDriver):
self.common.client_logout()
def terminate_connection(self, volume, connector, **kwargs):
+ if type(connector) == dict and 'initiator' in connector:
self.common.unmap_volume(volume, connector, 'initiator')
def get_volume_stats(self, refresh=False):
