Prepend dev to volume mount device if it isn't there

Change-Id: I8fd30344204a2e7042b960252313ab21af3266b5
This commit is contained in:
Paul Marshall 2013-11-22 08:43:58 -06:00
parent fff1d51173
commit d7911847b1
1 changed files with 2 additions and 1 deletions

View File

@ -21,6 +21,7 @@ is sketchy at best.
"""
import glob
from nova import block_device
from nova import exception
from nova.openstack.common import log as logging
from nova.openstack.common import processutils
@ -60,7 +61,7 @@ class OVZVolume(object):
# devices and externally mounted filesystems at the same time.
# Currently it does not.
self.instance_id = instance_id
self.mountpoint = mountpoint
self.mountpoint = block_device.prepend_dev(mountpoint)
self.device = dev
def attach(self):