Skip to content

Commit

Permalink
Add delay after starting vm
Browse files Browse the repository at this point in the history
  • Loading branch information
Bertrand Paquet committed Nov 15, 2010
1 parent 24149dc commit ecd8571
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/com/octo/vmware/commands/PowerOn.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public void execute(String[] args) throws Exception {
VmInfo vmInfo = VmsListService.findVmByName(vimServiceUtil, vmLocation.getVmName());
System.out.println("Power on virtual machine " + vmInfo.getName() + " on host " + vmLocation.getEsxName());
ManagedObjectReference task = vimServiceUtil.getService().powerOnVMTask(vmInfo.getManagedObjectReference(), null);
Thread.sleep(10000);
System.out.println("Result : " + (PropertiesService.waitForTaskEnd(vimServiceUtil, task) ? "OK" : "Error"));
}

Expand Down

0 comments on commit ecd8571

Please sign in to comment.