You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: server/src/main/java/com/cloud/vm/snapshot/VMSnapshotManagerImpl.java
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -761,9 +761,9 @@ public UserVm revertToSnapshot(Long vmSnapshotId) throws InsufficientCapacityExc
761
761
"In order to revert to a Snapshot without memory you need to first stop the Instance.");
762
762
}
763
763
764
-
if (userVm.getState() == VirtualMachine.State.Stopped && vmSnapshotVo.getType() == VMSnapshot.Type.DiskAndMemory) {
764
+
if (userVm.getState() == VirtualMachine.State.Stopped && vmSnapshotVo.getType() == VMSnapshot.Type.DiskAndMemory) {
765
765
thrownewInvalidParameterValueException(
766
-
"Reverting to the Instance Snapshot is not allowed for stopped Instances if the Snapshot contains memory. " +
766
+
"Reverting to the Instance Snapshot is not allowed for stopped Instances when the Snapshot contains memory as this would result in an Instance state change. " +
767
767
"In order to revert to a Snapshot with memory you need to first start the Instance.");
0 commit comments