DaanHoogland commented on code in PR #8556:
URL: https://github.com/apache/cloudstack/pull/8556#discussion_r1465022426
##########
server/src/main/java/com/cloud/template/HypervisorTemplateAdapter.java:
##########
@@ -748,9 +748,6 @@ void checkAndRemoveTemplateDetails(VMTemplateVO template) {
public TemplateProfile prepareDelete(DeleteTemplateCmd cmd) {
TemplateProfile profile = super.prepareDelete(cmd);
VMTemplateVO template = profile.getTemplate();
- if (template.getTemplateType() == TemplateType.SYSTEM) {
- throw new InvalidParameterValueException("The DomR template cannot
be deleted.");
- }
Review Comment:
```sugestion
if (template.getTemplateType() == TemplateType.SYSTEM && !
cmd.isForced()) {
throw new InvalidParameterValueException("The DomR template
cannot be deleted.");
}
```
is what you mean @GaOrtiga ?
--
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]