Prepend dev to volume mount device if it isn't there
Change-Id: I8fd30344204a2e7042b960252313ab21af3266b5
This commit is contained in:
parent
fff1d51173
commit
d7911847b1
|
@ -21,6 +21,7 @@ is sketchy at best.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import glob
|
import glob
|
||||||
|
from nova import block_device
|
||||||
from nova import exception
|
from nova import exception
|
||||||
from nova.openstack.common import log as logging
|
from nova.openstack.common import log as logging
|
||||||
from nova.openstack.common import processutils
|
from nova.openstack.common import processutils
|
||||||
|
@ -60,7 +61,7 @@ class OVZVolume(object):
|
||||||
# devices and externally mounted filesystems at the same time.
|
# devices and externally mounted filesystems at the same time.
|
||||||
# Currently it does not.
|
# Currently it does not.
|
||||||
self.instance_id = instance_id
|
self.instance_id = instance_id
|
||||||
self.mountpoint = mountpoint
|
self.mountpoint = block_device.prepend_dev(mountpoint)
|
||||||
self.device = dev
|
self.device = dev
|
||||||
|
|
||||||
def attach(self):
|
def attach(self):
|
||||||
|
|
Loading…
Reference in New Issue