CLOUDSTACK-6170 (Fixed an issue where custom compute offering and custom storage IOPS were leading to custom storage IOPS that were specified not being used)

This commit is contained in:
Mike Tutkowski 2014-03-22 00:41:25 -06:00
parent 5e3d4aebac
commit b354893393
2 changed files with 3 additions and 1 deletions

View File

@ -173,6 +173,7 @@ public class ServiceOfferingVO extends DiskOfferingVO implements ServiceOffering
offering.getUseLocalStorage(),
offering.getSystemUse(),
true,
offering.isCustomizedIops(),
offering.getDomainId());
cpu = offering.getCpu();
ramSize = offering.getRamSize();

View File

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