Skip to content

Commit cdec6b8

Browse files
weizhouapachedhslove
authored andcommitted
Revert "storage: fix private templates are not copied to new image store (apache#9206)" (apache#9839)
This reverts commit e06f80e.
1 parent 28edc04 commit cdec6b8

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
@@ -533,6 +533,11 @@ public void handleTemplateSync(DataStore store) {
533533
logger.info("Skip downloading template " + tmplt.getUniqueName() + " since no url is specified.");
534534
continue;
535535
}
536+
// if this is private template, skip sync to a new image store
537+
if (isSkipTemplateStoreDownload(tmplt, zoneId)) {
538+
s_logger.info("Skip sync downloading private template " + tmplt.getUniqueName() + " to a new image store");
539+
continue;
540+
}
536541

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

0 commit comments

Comments
 (0)