Skip to content

Commit adbf370

Browse files
Revert "storage: fix private templates are not copied to new image store (#9206)" (#9839)
This reverts commit e06f80e.
1 parent 03bdf11 commit adbf370

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

engine/storage/image/src/main/java/org/apache/cloudstack/storage/image/TemplateServiceImpl.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -532,6 +532,11 @@ public void handleTemplateSync(DataStore store) {
532532
s_logger.info("Skip downloading template " + tmplt.getUniqueName() + " since no url is specified.");
533533
continue;
534534
}
535+
// if this is private template, skip sync to a new image store
536+
if (isSkipTemplateStoreDownload(tmplt, zoneId)) {
537+
s_logger.info("Skip sync downloading private template " + tmplt.getUniqueName() + " to a new image store");
538+
continue;
539+
}
535540

536541
// if this is a region store, and there is already an DOWNLOADED entry there without install_path information, which
537542
// means that this is a duplicate entry from migration of previous NFS to staging.

0 commit comments

Comments
 (0)