Skip to content

Commit 6b0ae7d

Browse files
committed
template: pass empty checksum for template copy
Since checksum value stored for source template while copying is for the downloaded file and not the installed template, an empty value is passed to download service to prevent checsum mismatch. Signed-off-by: Abhishek Kumar <abhishek.kumar@shapeblue.com>
1 parent 0d92b92 commit 6b0ae7d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1045,6 +1045,8 @@ public AsyncCallFuture<TemplateApiResult> copyTemplate(TemplateInfo srcTemplate,
10451045
}
10461046
tmplForCopy.setUrl(url);
10471047

1048+
tmplForCopy.getImage().setChecksum("");
1049+
10481050
if (s_logger.isDebugEnabled()) {
10491051
s_logger.debug("Mark template_store_ref entry as Creating");
10501052
}

0 commit comments

Comments
 (0)