FakeHypervisor: fix a function signature
authorGuido Trotter <ultrotter@google.com>
Wed, 13 Aug 2008 14:24:15 +0000 (14:24 +0000)
committerGuido Trotter <ultrotter@google.com>
Wed, 13 Aug 2008 14:24:15 +0000 (14:24 +0000)
StartInstance takes 'block_devices', not 'force' as its third argument.
Even if this is not used in the fake hypervisor it's better to have the
correct argument name to avoid confusion.

Reviewed-by: imsnah

lib/hypervisor/hv_fake.py

index 214ade4..fdfbdef 100644 (file)
@@ -107,7 +107,7 @@ class FakeHypervisor(hv_base.BaseHypervisor):
         raise errors.HypervisorError("Failed to list instances: %s" % err)
     return data
 
-  def StartInstance(self, instance, force, extra_args):
+  def StartInstance(self, instance, block_devices, extra_args):
     """Start an instance.
 
     For the fake hypervisor, it just creates a file in the base dir,