Skip to content

Commit 92a9ee0

Browse files
AsyncJob reports 'Successful' even if RevertToVMSnapshot operation fails.
This closes apache#484
1 parent bcfb824 commit 92a9ee0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

server/src/com/cloud/vm/snapshot/VMSnapshotManagerImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -709,7 +709,7 @@ private UserVm orchestrateRevertToVMSnapshot(Long vmSnapshotId) throws Insuffici
709709
return userVm;
710710
} catch (Exception e) {
711711
s_logger.debug("Failed to revert vmsnapshot: " + vmSnapshotId, e);
712-
return null;
712+
throw new CloudRuntimeException(e.getMessage());
713713
}
714714
}
715715

0 commit comments

Comments
 (0)