Skip to content

Commit f569246

Browse files
Update plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/storage/KVMStorageProcessor.java
Co-authored-by: Suresh Kumar Anaparti <[email protected]>
1 parent 60ed3ec commit f569246

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2393,6 +2393,7 @@ 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("Skipped validation whether downloaded file is QCOW2 due to downloaded template path is empty");
2396+
return new DirectDownloadAnswer(false, "Downloaded template path is empty.", true);
23962397
} else if (!new File(templatePath).exists()) {
23972398
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));
23982399
} else {

0 commit comments

Comments
 (0)