Skip to content

Commit b354893

Browse files
author
Mike Tutkowski
committed
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)
1 parent 5e3d4ae commit b354893

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

‎engine/schema/src/com/cloud/service/ServiceOfferingVO.java‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ public ServiceOfferingVO(ServiceOfferingVO offering) {
173173
offering.getUseLocalStorage(),
174174
offering.getSystemUse(),
175175
true,
176+
offering.isCustomizedIops(),
176177
offering.getDomainId());
177178
cpu = offering.getCpu();
178179
ramSize = offering.getRamSize();

‎engine/schema/src/com/cloud/storage/DiskOfferingVO.java‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ public DiskOfferingVO(String name, String displayText, boolean mirrored, String
207207
}
208208

209209
public DiskOfferingVO(long id, String name, String displayText, boolean mirrored, String tags, boolean recreatable,
210-
boolean useLocalStorage, boolean systemUse, boolean customized, Long domainId) {
210+
boolean useLocalStorage, boolean systemUse, boolean customized, boolean customizedIops, Long domainId) {
211211
this.id = id;
212212
type = Type.Service;
213213
this.name = name;
@@ -217,6 +217,7 @@ public DiskOfferingVO(long id, String name, String displayText, boolean mirrored
217217
this.useLocalStorage = useLocalStorage;
218218
this.systemUse = systemUse;
219219
this.customized = customized;
220+
this.customizedIops = customizedIops;
220221
this.domainId = domainId;
221222
uuid = UUID.randomUUID().toString();
222223
state = State.Active;

0 commit comments

Comments
 (0)