You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
s_logger.debug(String.format("Template %s is not present on any image store for the zone ID: %d, its download cannot be skipped", template.getUniqueName(), zoneId));
301
+
returnfalse;
302
+
}
303
+
returntrue;
304
+
}
305
+
289
306
@Override
290
307
publicvoidhandleTemplateSync(DataStorestore) {
291
308
if (store == null) {
@@ -513,7 +530,7 @@ public void handleTemplateSync(DataStore store) {
513
530
continue;
514
531
}
515
532
// if this is private template, skip sync to a new image store
516
-
if (!tmplt.isPublicTemplate() && !tmplt.isFeatured() && tmplt.getTemplateType() != TemplateType.SYSTEM) {
533
+
if (isSkipTemplateStoreDownload(tmplt, zoneId)) {
517
534
s_logger.info("Skip sync downloading private template " + tmplt.getUniqueName() + " to a new image store");
0 commit comments