sureshanaparti commented on code in PR #9633:
URL: https://github.com/apache/cloudstack/pull/9633#discussion_r1744815918
##########
server/src/main/java/com/cloud/vm/UserVmManagerImpl.java:
##########
@@ -3384,6 +3398,11 @@ public UserVm destroyVm(DestroyVMCmd cmd) throws
ResourceUnavailableException, C
return vm;
}
+ if (vm.isDeleteProtection()) {
+ throw new InvalidParameterValueException(
+ "Failed to delete the instance. It has delete protection
enabled.");
Review Comment:
```suggestion
"Instance has delete protection enabled and cannot be
deleted.");
```
--
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]