mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Add format and physicalsize in listIsoOs api response (#11214)
This commit is contained in:
parent
9c6dfd2b26
commit
3fc02ddd45
@ -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());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user