Skip to content

Commit fcd2160

Browse files
abh1sarCopilot
andauthored
update error msg
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 7e76f8c commit fcd2160

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -756,14 +756,14 @@ public UserVm revertToSnapshot(Long vmSnapshotId) throws InsufficientCapacityExc
756756

757757
if (userVm.getState() == VirtualMachine.State.Running && vmSnapshotVo.getType() == VMSnapshot.Type.Disk) {
758758
throw new InvalidParameterValueException(
759-
"Reverting to the Instance Snapshot is not allowed for running Instances as this would result in a Instance state change." +
760-
"For running Instances only Snapshots with memory can be reverted." +
759+
"Reverting to the Instance Snapshot is not allowed for running Instances as this would result in a Instance state change. " +
760+
"For running Instances only Snapshots with memory can be reverted. " +
761761
"In order to revert to a Snapshot without memory you need to first stop the Instance.");
762762
}
763763

764764
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 if the Snapshot contains memory. " +
767767
"In order to revert to a Snapshot with memory you need to first start the Instance.");
768768
}
769769

0 commit comments

Comments
 (0)