You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by sa...@apache.org on 2015/06/19 12:17:29 UTC

git commit: updated refs/heads/master to 92a9ee0

Repository: cloudstack
Updated Branches:
  refs/heads/master bcfb8240e -> 92a9ee097


AsyncJob reports 'Successful' even if RevertToVMSnapshot operation fails.
This closes #484


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/92a9ee09
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/92a9ee09
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/92a9ee09

Branch: refs/heads/master
Commit: 92a9ee097dfd4774bddc799f15ea76f0614d5062
Parents: bcfb824
Author: Sanjay Tripathi <sa...@citrix.com>
Authored: Fri Jun 19 15:46:07 2015 +0530
Committer: Sanjay Tripathi <sa...@citrix.com>
Committed: Fri Jun 19 15:48:21 2015 +0530

----------------------------------------------------------------------
 server/src/com/cloud/vm/snapshot/VMSnapshotManagerImpl.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/92a9ee09/server/src/com/cloud/vm/snapshot/VMSnapshotManagerImpl.java
----------------------------------------------------------------------
diff --git a/server/src/com/cloud/vm/snapshot/VMSnapshotManagerImpl.java b/server/src/com/cloud/vm/snapshot/VMSnapshotManagerImpl.java
index b49db9b..2dcd2e2 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());
         }
     }