Spaceman1984 commented on a change in pull request #3748: Systemvm template api (WIP) URL: https://github.com/apache/cloudstack/pull/3748#discussion_r358666059
########## File path: server/src/main/java/com/cloud/template/HypervisorTemplateAdapter.java ########## @@ -602,11 +617,13 @@ public TemplateProfile prepareDelete(DeleteTemplateCmd cmd) { TemplateProfile profile = super.prepareDelete(cmd); VMTemplateVO template = profile.getTemplate(); List<Long> zoneIdList = profile.getZoneIdList(); - - if (template.getTemplateType() == TemplateType.SYSTEM) { + // TODO: Add a check to see if this template is used by console proxy, router or storagevm Review comment: Added ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services