Merge "Remove dead parameter from '_create_domain_and_network'"
This commit is contained in:
commit
66440c5def
@ -10806,7 +10806,7 @@ class LibvirtConnTestCase(test.NoDBTestCase,
|
||||
|
||||
def fake_create_domain_and_network(
|
||||
context, xml, instance, network_info,
|
||||
block_device_info=None, power_on=True, reboot=False,
|
||||
block_device_info=None, power_on=True,
|
||||
vifs_already_plugged=False, post_xml_callback=None,
|
||||
destroy_disks_on_failure=False):
|
||||
# The config disk should be created by this callback, so we need
|
||||
|
@ -5176,8 +5176,7 @@ class LibvirtDriver(driver.ComputeDriver):
|
||||
destroy_disks=destroy_disks)
|
||||
|
||||
def _create_domain_and_network(self, context, xml, instance, network_info,
|
||||
block_device_info=None,
|
||||
power_on=True, reboot=False,
|
||||
block_device_info=None, power_on=True,
|
||||
vifs_already_plugged=False,
|
||||
post_xml_callback=None,
|
||||
destroy_disks_on_failure=False):
|
||||
@ -5189,7 +5188,7 @@ class LibvirtDriver(driver.ComputeDriver):
|
||||
for vol in block_device_mapping:
|
||||
connection_info = vol['connection_info']
|
||||
|
||||
if (not reboot and 'data' in connection_info and
|
||||
if ('data' in connection_info and
|
||||
'volume_id' in connection_info['data']):
|
||||
volume_id = connection_info['data']['volume_id']
|
||||
encryption = encryptors.get_encryption_metadata(
|
||||
|
Loading…
Reference in New Issue
Block a user