From 3404850aba6b8d91df12538586dfc4992e90a315 Mon Sep 17 00:00:00 2001 From: Mattias Holmqvist Date: Sat, 29 Oct 2011 21:48:55 +0200 Subject: [PATCH] Small fix for running live tests from clean slate. Still stuff to do to get it running more than once... --- .../LaunchMachineIfNotAlreadyRunning.java | 27 ++++++++++--------- .../LaunchMachineIfNotAlreadyRunningTest.java | 9 +++---- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/sandbox-apis/virtualbox/src/main/java/org/jclouds/virtualbox/functions/LaunchMachineIfNotAlreadyRunning.java b/sandbox-apis/virtualbox/src/main/java/org/jclouds/virtualbox/functions/LaunchMachineIfNotAlreadyRunning.java index 8c7059f9c4..71ff12bc54 100644 --- a/sandbox-apis/virtualbox/src/main/java/org/jclouds/virtualbox/functions/LaunchMachineIfNotAlreadyRunning.java +++ b/sandbox-apis/virtualbox/src/main/java/org/jclouds/virtualbox/functions/LaunchMachineIfNotAlreadyRunning.java @@ -29,10 +29,7 @@ import org.jclouds.compute.reference.ComputeServiceConstants; import org.jclouds.logging.Logger; import org.jclouds.virtualbox.domain.ErrorCode; import org.jclouds.virtualbox.domain.ExecutionType; -import org.virtualbox_4_1.IMachine; -import org.virtualbox_4_1.IProgress; -import org.virtualbox_4_1.VBoxException; -import org.virtualbox_4_1.VirtualBoxManager; +import org.virtualbox_4_1.*; import com.google.common.base.Function; @@ -48,9 +45,8 @@ import com.google.common.base.Function; * found. VBOX_E_INVALID_OBJECT_STATE: Session already open or being opened. * VBOX_E_IPRT_ERROR: Launching process for machine failed. VBOX_E_VM_ERROR: * Failed to assign machine to session. - * + * * @author Mattias Holmqvist - * * @see ErrorCode */ public class LaunchMachineIfNotAlreadyRunning implements Function { @@ -73,7 +69,7 @@ public class LaunchMachineIfNotAlreadyRunning implements Function