sync: Update renamed method usage
The Nova driver 'block_device_info_get_root' method has been renamed to 'block_device_info_get_root_device', for which reason we're now getting attribute errors when spawning instances. This change updates the method call. Change-Id: I811ca11d347a63556b66af3d5db1524fe325485e
This commit is contained in:
@@ -219,8 +219,9 @@ class BlockDeviceInfoManager(object):
|
|||||||
# either booting from volume, or booting from image/iso
|
# either booting from volume, or booting from image/iso
|
||||||
root_disk = {}
|
root_disk = {}
|
||||||
|
|
||||||
root_device = (driver.block_device_info_get_root(block_device_info) or
|
root_device = driver.block_device_info_get_root_device(
|
||||||
self._DEFAULT_ROOT_DEVICE)
|
block_device_info)
|
||||||
|
root_device = root_device or self._DEFAULT_ROOT_DEVICE
|
||||||
|
|
||||||
if self.is_boot_from_volume(block_device_info):
|
if self.is_boot_from_volume(block_device_info):
|
||||||
root_volume = self._get_root_device_bdm(
|
root_volume = self._get_root_device_bdm(
|
||||||
|
|||||||
Reference in New Issue
Block a user