Skip to content

Commit 63e538b

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 3e4c55c commit 63e538b

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
@@ -1038,6 +1038,8 @@ public AsyncCallFuture<TemplateApiResult> copyTemplate(TemplateInfo srcTemplate,
10381038
}
10391039
tmplForCopy.setUrl(url);
10401040

1041+
tmplForCopy.getImage().setChecksum("");
1042+
10411043
if (s_logger.isDebugEnabled()) {
10421044
s_logger.debug("Mark template_store_ref entry as Creating");
10431045
}

0 commit comments

Comments
 (0)