Merge "Disco driver: Fix the location to get the disco connector constant"

This commit is contained in:
Zuul 2017-11-09 11:40:06 +00:00 committed by Gerrit Code Review
commit 543bba9577

View File

@ -15,6 +15,7 @@
"""Class for DISCO to attach and detach volume."""
from os_brick import initiator
from os_brick.initiator import connector
from oslo_log import log as logging
@ -54,7 +55,7 @@ class AttachDetachDiscoVolume(object):
def _get_connector_identifier(self):
"""Return connector identifier, put here to mock it in unit tests."""
return connector.DISCO
return initiator.DISCO
def _attach_volume(self, volume):
"""Call the connector.connect_volume()."""