IOPS null issue CLOUDSTACK-7570

Signed-off-by: Mike Tutkowski <mike.tutkowski@solidfire.com>
This commit is contained in:
punith-cloudbyte 2014-09-17 17:53:47 +05:30 committed by Mike Tutkowski
parent 082aed3d33
commit dd4f6bcaf3
2 changed files with 6 additions and 2 deletions

View File

@ -177,7 +177,9 @@ public class ServiceOfferingVO extends DiskOfferingVO implements ServiceOffering
offering.getSystemUse(),
true,
offering.isCustomizedIops()== null ? false:offering.isCustomizedIops(),
offering.getDomainId());
offering.getDomainId(),
offering.getMinIops(),
offering.getMaxIops());
cpu = offering.getCpu();
ramSize = offering.getRamSize();
speed = offering.getSpeed();

View File

@ -214,7 +214,7 @@ public class DiskOfferingVO implements DiskOffering {
}
public DiskOfferingVO(long id, String name, String displayText, Storage.ProvisioningType provisioningType, boolean mirrored, String tags, boolean recreatable,
boolean useLocalStorage, boolean systemUse, boolean customized, boolean customizedIops, Long domainId) {
boolean useLocalStorage, boolean systemUse, boolean customized, boolean customizedIops, Long domainId, Long minIops, Long maxIops) {
this.id = id;
type = Type.Service;
this.name = name;
@ -229,6 +229,8 @@ public class DiskOfferingVO implements DiskOffering {
this.domainId = domainId;
uuid = UUID.randomUUID().toString();
state = State.Active;
this.minIops = minIops;
this.maxIops = maxIops;
}
@Override