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
This commit is contained in:
Mark McLoughlin
2012-09-03 16:43:37 +01:00
parent e3ea18d958
commit 93afeb76a0

View File

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