This is an automated email from the ASF dual-hosted git repository.
sureshanaparti pushed a commit to branch 4.19
in repository https://gitbox.apache.org/repos/asf/cloudstack.git
The following commit(s) were added to refs/heads/4.19 by this push:
new 3fc02ddd45e Add format and physicalsize in listIsoOs api response
(#11214)
3fc02ddd45e is described below
commit 3fc02ddd45e41d6b358c55290d923aa90297aafd
Author: Manoj Kumar <[email protected]>
AuthorDate: Mon Jul 21 15:52:38 2025 +0530
Add format and physicalsize in listIsoOs api response (#11214)
---
.../src/main/java/com/cloud/api/query/dao/TemplateJoinDaoImpl.java | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git
a/server/src/main/java/com/cloud/api/query/dao/TemplateJoinDaoImpl.java
b/server/src/main/java/com/cloud/api/query/dao/TemplateJoinDaoImpl.java
index 063766761db..26a18818dbf 100644
--- a/server/src/main/java/com/cloud/api/query/dao/TemplateJoinDaoImpl.java
+++ b/server/src/main/java/com/cloud/api/query/dao/TemplateJoinDaoImpl.java
@@ -480,6 +480,7 @@ public class TemplateJoinDaoImpl extends
GenericDaoBaseWithTagInformation<Templa
isoResponse.setExtractable(iso.isExtractable() &&
!(iso.getTemplateType() == TemplateType.PERHOST));
isoResponse.setCreated(iso.getCreatedOnStore());
isoResponse.setDynamicallyScalable(iso.isDynamicallyScalable());
+ isoResponse.setFormat(iso.getFormat());
if (iso.getTemplateType() == TemplateType.PERHOST) {
// for TemplateManager.XS_TOOLS_ISO and
TemplateManager.VMWARE_TOOLS_ISO, we didn't download, but is ready to use.
isoResponse.setReady(true);
@@ -578,10 +579,14 @@ public class TemplateJoinDaoImpl extends
GenericDaoBaseWithTagInformation<Templa
isoResponse.setZoneName(iso.getDataCenterName());
}
- Long isoSize = iso.getSize();
+ long isoSize = iso.getSize();
if (isoSize > 0) {
isoResponse.setSize(isoSize);
}
+ long isoPhysicalSize = iso.getPhysicalSize();
+ if (isoPhysicalSize > 0) {
+ isoResponse.setPhysicalSize(isoPhysicalSize);
+ }
if (iso.getUserDataId() != null) {
isoResponse.setUserDataId(iso.getUserDataUUid());