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:
parent
d69a7e887c
commit
81da493c3e
|
@ -219,8 +219,9 @@ class BlockDeviceInfoManager(object):
|
|||
# either booting from volume, or booting from image/iso
|
||||
root_disk = {}
|
||||
|
||||
root_device = (driver.block_device_info_get_root(block_device_info) or
|
||||
self._DEFAULT_ROOT_DEVICE)
|
||||
root_device = driver.block_device_info_get_root_device(
|
||||
block_device_info)
|
||||
root_device = root_device or self._DEFAULT_ROOT_DEVICE
|
||||
|
||||
if self.is_boot_from_volume(block_device_info):
|
||||
root_volume = self._get_root_device_bdm(
|
||||
|
|
Loading…
Reference in New Issue