You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by GitBox <gi...@apache.org> on 2020/12/08 15:45:01 UTC
[GitHub] [cloudstack] weizhouapache commented on a change in pull request #4522: template: Copying templates to all zones if type changed to system
weizhouapache commented on a change in pull request #4522:
URL: https://github.com/apache/cloudstack/pull/4522#discussion_r538517515
##########
File path: server/src/main/java/com/cloud/template/TemplateManagerImpl.java
##########
@@ -2224,6 +2232,21 @@ else if (details != null && !details.isEmpty()) {
return _tmpltDao.findById(id);
}
+ private void copyTemplateToAllZones(Long id) {
+ s_logger.info("Copying template to all zones since it will be a system template");
+ List<DataCenterVO> zones = _dcDao.listEnabledZones();
+ if (zones != null) {
+ List<Long> zoneIds = zones.stream().map(zone -> zone.getId()).collect(Collectors.toList());
Review comment:
this seems to be handled by https://github.com/apache/cloudstack/blob/c59d0c82137f2294c67d4dd77dd1f4a69b2edb09/server/src/main/java/com/cloud/template/TemplateManagerImpl.java#L931-L936
----------------------------------------------------------------
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:
users@infra.apache.org