FakeHypervisor: fix a function signature
authorGuido Trotter <ultrotter@google.com>
Wed, 13 Aug 2008 15:00:24 +0000 (15:00 +0000)
committerGuido Trotter <ultrotter@google.com>
Wed, 13 Aug 2008 15:00:24 +0000 (15:00 +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.py

index c031cc1..c1de7a6 100644 (file)
@@ -517,7 +517,7 @@ class FakeHypervisor(BaseHypervisor):
         raise 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,