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:
Lucian Petrut 2018-01-17 11:08:44 +02:00
parent d69a7e887c
commit 81da493c3e
1 changed files with 3 additions and 2 deletions

View File

@ -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(