Skip to content

Commit 3c4f458

Browse files
committed
Merge remote-tracking branch 'apache/4.20'
2 parents 889fc62 + 5837c4f commit 3c4f458

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

api/src/main/java/org/apache/cloudstack/api/response/StatsResponse.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
public class StatsResponse extends BaseResponse {
2828

2929
@SerializedName("timestamp")
30-
@Param(description = "the time when the VM stats were collected. The format is \"yyyy-MM-dd hh:mm:ss\"")
30+
@Param(description = "the time when the VM stats were collected. The format is 'yyyy-MM-dd hh:mm:ss'")
3131
private Date timestamp;
3232

3333
@SerializedName("cpuused")

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,8 @@
9999
import org.apache.commons.lang3.StringUtils;
100100
import org.apache.commons.lang3.builder.ToStringBuilder;
101101
import org.apache.commons.lang3.builder.ToStringStyle;
102-
import org.apache.logging.log4j.Logger;
103102
import org.apache.logging.log4j.LogManager;
104-
103+
import org.apache.logging.log4j.Logger;
105104
import org.libvirt.Connect;
106105
import org.libvirt.Domain;
107106
import org.libvirt.DomainInfo;
@@ -2950,7 +2949,9 @@ public Answer handleDownloadTemplateToPrimaryStorage(DirectDownloadCommand cmd)
29502949
if (template != null) {
29512950
templatePath = template.getPath();
29522951
}
2953-
if (StringUtils.isEmpty(templatePath)) {
2952+
if (ImageFormat.ISO.equals(cmd.getFormat())) {
2953+
logger.debug("Skipping template validations as image format is {}", cmd.getFormat());
2954+
} else if (StringUtils.isEmpty(templatePath)) {
29542955
logger.warn("Skipped validation whether downloaded file is QCOW2 for template {}, due to downloaded template path is empty", template.getName());
29552956
} else if (!new File(templatePath).exists()) {
29562957
logger.warn("Skipped validation whether downloaded file is QCOW2 for template {}, due to downloaded template path is not valid: {}", template.getName(), templatePath);

0 commit comments

Comments
 (0)