Skip to content

Commit 7f324d6

Browse files
committed
Removed return of DirectDownloadAnswer if templatePath is not defined (as we want to skip QCOW2 validation if it is not provided)
1 parent 0d02e93 commit 7f324d6

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/storage/KVMStorageProcessor.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2393,7 +2393,6 @@ public Answer handleDownloadTemplateToPrimaryStorage(DirectDownloadCommand cmd)
23932393
//Check template path is not empty and points to existing local file to validate
23942394
if (StringUtils.isEmpty(templatePath)) {
23952395
s_logger.warn(String.format("Skipped validation whether downloaded file is QCOW2 due to downloaded template path is empty for template %s", template.getName()));
2396-
return new DirectDownloadAnswer(false, "Downloaded template path is empty.", true);
23972396
} else if (!new File(templatePath).exists()) {
23982397
s_logger.warn(String.format("Skipped validation whether downloaded file for %s is QCOW2 due to downloaded template path is not valid: %s", template.getName(), templatePath));
23992398
} else {

0 commit comments

Comments
 (0)