mirror of https://github.com/apache/cloudstack.git
fix for the ui to consume for the disk offering
This commit is contained in:
parent
67312e7eb4
commit
8e54a40b46
|
|
@ -91,7 +91,7 @@ public class DiskOfferingVO implements DiskOffering {
|
|||
private boolean systemUse;
|
||||
|
||||
@Column(name="customized")
|
||||
private boolean customized;
|
||||
private Boolean customized;
|
||||
|
||||
public DiskOfferingVO() {
|
||||
}
|
||||
|
|
@ -126,11 +126,11 @@ public class DiskOfferingVO implements DiskOffering {
|
|||
return id;
|
||||
}
|
||||
|
||||
public boolean isCustomized() {
|
||||
public Boolean isCustomized() {
|
||||
return customized;
|
||||
}
|
||||
|
||||
public void setCustomized(boolean customized) {
|
||||
public void setCustomized(Boolean customized) {
|
||||
this.customized = customized;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1183,6 +1183,10 @@ public class ConfigurationManagerImpl implements ConfigurationManager {
|
|||
diskSize = numGibibytes * 1024;
|
||||
}
|
||||
|
||||
if(diskSize == 0){
|
||||
isCustomized = true;
|
||||
}
|
||||
|
||||
tags = cleanupTags(tags);
|
||||
DiskOfferingVO newDiskOffering = new DiskOfferingVO(domainId, name, description, diskSize,tags, isCustomized);
|
||||
return _diskOfferingDao.persist(newDiskOffering);
|
||||
|
|
|
|||
Loading…
Reference in New Issue