Set startup_paused to False when restarting
authorStephen Shirley <diamond@google.com>
Wed, 13 Jul 2011 15:58:50 +0000 (17:58 +0200)
committerStephen Shirley <diamond@google.com>
Wed, 13 Jul 2011 16:07:50 +0000 (18:07 +0200)
This fixes the lint error:

E1120:1220:InstanceReboot: No value passed for parameter
'startup_paused' in function call

Signed-off-by: Stephen Shirley <diamond@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>

lib/backend.py

index f4616fd..82408e2 100644 (file)
@@ -1217,7 +1217,7 @@ def InstanceReboot(instance, reboot_type, shutdown_timeout):
   elif reboot_type == constants.INSTANCE_REBOOT_HARD:
     try:
       InstanceShutdown(instance, shutdown_timeout)
-      return StartInstance(instance)
+      return StartInstance(instance, False)
     except errors.HypervisorError, err:
       _Fail("Failed to hard reboot instance %s: %s", instance.name, err)
   else: