summaryrefslogtreecommitdiff
path: root/nova/virt/libvirt/volume/vrtshyperscale.py
diff options
context:
space:
mode:
authorSean McGinnis <sean.mcginnis@huawei.com>2017-10-07 13:49:57 -0500
committerSean McGinnis <sean.mcginnis@huawei.com>2017-10-07 13:49:57 -0500
commit3daeb9681efee5719e4c77db1389c48009f97d05 (patch)
treeb9fd0b2a66dd88808b72792f6265f444fecf7dff /nova/virt/libvirt/volume/vrtshyperscale.py
parenta347b8099e76babb12b35495db8babe837556f5b (diff)
downloadnova-3daeb9681efee5719e4c77db1389c48009f97d05.tar.gz
Update libvirt volume drivers to use os-brick constants
Most drivers had hard coded protocol strings, and one driver was using a constant from os-brick that has been deprecated for removal for quite some time. This updates all volume drivers to use the current available constants from os-brick. Change-Id: I8682804d2299db793c1e4397a07ff67608a8bda6 Closes-bug: #1721993
Diffstat (limited to 'nova/virt/libvirt/volume/vrtshyperscale.py')
-rw-r--r--nova/virt/libvirt/volume/vrtshyperscale.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/nova/virt/libvirt/volume/vrtshyperscale.py b/nova/virt/libvirt/volume/vrtshyperscale.py
index 2a438787eb..c5c9a510c4 100644
--- a/nova/virt/libvirt/volume/vrtshyperscale.py
+++ b/nova/virt/libvirt/volume/vrtshyperscale.py
@@ -15,6 +15,7 @@
"""Libvirt volume driver for HyperScale."""
+from os_brick import initiator
from os_brick.initiator import connector
from oslo_log import log as logging
@@ -36,7 +37,7 @@ class LibvirtHyperScaleVolumeDriver(libvirt_volume.LibvirtVolumeDriver):
def __init__(self, connection):
super(LibvirtHyperScaleVolumeDriver, self).__init__(connection)
self.connector = connector.InitiatorConnector.factory(
- 'VERITAS_HYPERSCALE', utils.get_root_helper())
+ initiator.VERITAS_HYPERSCALE, utils.get_root_helper())
def connect_volume(self, connection_info, disk_info, instance):
# The os-brick connector may raise BrickException.