sureshanaparti commented on code in PR #9633:
URL: https://github.com/apache/cloudstack/pull/9633#discussion_r1744816693


##########
server/src/main/java/com/cloud/vm/UserVmManagerImpl.java:
##########
@@ -8547,6 +8566,12 @@ private void validateVolumes(List<VolumeVO> volumes) {
             if (!(volume.getVolumeType() == Volume.Type.ROOT || 
volume.getVolumeType() == Volume.Type.DATADISK)) {
                 throw new InvalidParameterValueException("Please specify 
volume of type " + Volume.Type.DATADISK.toString() + " or " + 
Volume.Type.ROOT.toString());
             }
+            if (volume.isDeleteProtection()) {
+                throw new InvalidParameterValueException(
+                        String.format("Volume with id %s has delete protection 
enabled and cannot be deleted",
+                                volume.getUuid()));

Review Comment:
   volume name here?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to