From 92a9ee097dfd4774bddc799f15ea76f0614d5062 Mon Sep 17 00:00:00 2001 From: Sanjay Tripathi Date: Fri, 19 Jun 2015 15:46:07 +0530 Subject: [PATCH] AsyncJob reports 'Successful' even if RevertToVMSnapshot operation fails. This closes #484 --- server/src/com/cloud/vm/snapshot/VMSnapshotManagerImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/com/cloud/vm/snapshot/VMSnapshotManagerImpl.java b/server/src/com/cloud/vm/snapshot/VMSnapshotManagerImpl.java index b49db9b51c1..2dcd2e27b5a 100644 --- a/server/src/com/cloud/vm/snapshot/VMSnapshotManagerImpl.java +++ b/server/src/com/cloud/vm/snapshot/VMSnapshotManagerImpl.java @@ -709,7 +709,7 @@ public class VMSnapshotManagerImpl extends ManagerBase implements VMSnapshotMana return userVm; } catch (Exception e) { s_logger.debug("Failed to revert vmsnapshot: " + vmSnapshotId, e); - return null; + throw new CloudRuntimeException(e.getMessage()); } }