From 50f225964b24dbf63402e8332f508728258809ad Mon Sep 17 00:00:00 2001 From: Subrahmanyam Mandavilli Date: Fri, 6 May 2016 14:55:03 +0530 Subject: [PATCH] Fix for restore snapshot putting vm in suspended state --- src/Tools/vmOpsTool/VMWareImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Tools/vmOpsTool/VMWareImpl.java b/src/Tools/vmOpsTool/VMWareImpl.java index 5d9cca4..bcd89b4 100644 --- a/src/Tools/vmOpsTool/VMWareImpl.java +++ b/src/Tools/vmOpsTool/VMWareImpl.java @@ -118,7 +118,7 @@ public class VMWareImpl implements IVMWare { System.out.println(String.format("Restoring snapshot [ %s ] on virtual machine [ %s ].", snapshotName, vmName)); ManagedObjectReference vmMor = getMorByName(targetDCMor, vmName, VIRTUAL_MACHINE, false); ManagedObjectReference cpMor = getSnapshotReference(vmMor, vmName, snapshotName); - ManagedObjectReference task = vimPort.revertToSnapshotTask(cpMor, null, true); + ManagedObjectReference task = vimPort.revertToSnapshotTask(cpMor, null, false); if (waitAndGetTaskResult(task)) { System.out.println(String.format("Successfully reverted to snapshot [ %s ] On virtual machine [ %s ].", snapshotName,