Skip to content

Commit 64c9a96

Browse files
abh1sarwinterhazel
andcommitted
Update server/src/main/java/com/cloud/vm/snapshot/VMSnapshotManagerImpl.java
Co-authored-by: Fabricio Duarte <fabricio.duarte.jr@gmail.com>
1 parent 03b0adf commit 64c9a96

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -761,9 +761,9 @@ public UserVm revertToSnapshot(Long vmSnapshotId) throws InsufficientCapacityExc
761761
"In order to revert to a Snapshot without memory you need to first stop the Instance.");
762762
}
763763

764-
if ( userVm.getState() == VirtualMachine.State.Stopped && vmSnapshotVo.getType() == VMSnapshot.Type.DiskAndMemory) {
764+
if (userVm.getState() == VirtualMachine.State.Stopped && vmSnapshotVo.getType() == VMSnapshot.Type.DiskAndMemory) {
765765
throw new InvalidParameterValueException(
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. " +
767767
"In order to revert to a Snapshot with memory you need to first start the Instance.");
768768
}
769769

0 commit comments

Comments
 (0)