From 93afeb76a045a809143f76c08e74480109b1e6a7 Mon Sep 17 00:00:00 2001 From: Mark McLoughlin Date: Mon, 3 Sep 2012 16:43:37 +0100 Subject: [PATCH] Fix hyperv driver spawn() signature Fixes bug #1045392 commit 99fb9d2a changed the signature of the spawn() method but not all drivers were updated for the change. The injected_files and admin_password instance attributes were ignored by the hyperv driver before, so we can just ignore them in spawn() now that they are being passed as function arguments. Change-Id: I129d21316488a18a4f062252ba5f788bc65c7c25 --- nova/tests/test_hypervapi.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/nova/tests/test_hypervapi.py b/nova/tests/test_hypervapi.py index 8c4296dd..49a41186 100644 --- a/nova/tests/test_hypervapi.py +++ b/nova/tests/test_hypervapi.py @@ -378,8 +378,10 @@ class HyperVAPITestCase(basetestcase.BaseTestCase): network_info = fake_network.fake_get_instance_nw_info(self.stubs, spectacular=True) - self._conn.spawn(self._context, instance, image, network_info, - block_device_info) + self._conn.spawn(self._context, instance, image, + injected_files=[], admin_password=None, + network_info=network_info, + block_device_info=block_device_info) def _test_spawn_instance(self, cow): self._spawn_instance(cow)