diff options
| author | Alessandro Pilotti <ap@pilotti.it> | 2013-03-01 02:23:48 +0200 |
|---|---|---|
| committer | Alessandro Pilotti <ap@pilotti.it> | 2013-03-01 02:23:48 +0200 |
| commit | d1414c8a4f44484a4b4c39d9ba5f8a9d386f696b (patch) | |
| tree | f0580d728957315d09fd207133f64602669ff74c /nova/virt | |
| parent | b58bd0cd9a6ecb960a7c833d1f4857629ed1ab05 (diff) | |
Fixes the Hyper-V driver's method signature
Fixes Bug: 1132772
Corrects an issue in the Hyper-V driver's destroy method argument list.
Change-Id: Ieb15df80a2d3738a46f7bdd56ba0de57b68fac14
Diffstat (limited to 'nova/virt')
| -rwxr-xr-x | nova/virt/hyperv/driver.py | 5 | ||||
| -rw-r--r-- | nova/virt/hyperv/vmops.py | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/nova/virt/hyperv/driver.py b/nova/virt/hyperv/driver.py index aac47deef..491aaa2fe 100755 --- a/nova/virt/hyperv/driver.py +++ b/nova/virt/hyperv/driver.py @@ -57,9 +57,10 @@ class HyperVDriver(driver.ComputeDriver): block_device_info=None): self._vmops.reboot(instance, network_info, reboot_type) - def destroy(self, instance, network_info=None, cleanup=True, + def destroy(self, instance, network_info, block_device_info=None, destroy_disks=True): - self._vmops.destroy(instance, network_info, cleanup, destroy_disks) + self._vmops.destroy(instance, network_info, block_device_info, + destroy_disks) def get_info(self, instance): return self._vmops.get_info(instance) diff --git a/nova/virt/hyperv/vmops.py b/nova/virt/hyperv/vmops.py index c7a4e5468..f488e993f 100644 --- a/nova/virt/hyperv/vmops.py +++ b/nova/virt/hyperv/vmops.py @@ -241,7 +241,7 @@ class VMOps(object): create_dir=False, remove_dir=True) - def destroy(self, instance, network_info=None, cleanup=True, + def destroy(self, instance, network_info=None, block_device_info=None, destroy_disks=True): instance_name = instance['name'] LOG.info(_("Got request to destroy instance: %s"), instance_name) |
