Skip to content

Commit 62c8a11

Browse files
Philipp BankonierDennis Konrad
authored andcommitted
Fix iops values when creating a compute offering (#3345)
@mike-tutkowski @syed If there's something more that needs to be added/changed, we'll just open another PR for this. For now this seems to be a very straightforward fix for the UI problem with managed storage. * Fix iops values when creating a compute offering * Fix iops values when creating a disk offering
1 parent 4f35639 commit 62c8a11

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

server/src/main/java/com/cloud/configuration/ConfigurationManagerImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2411,7 +2411,7 @@ protected ServiceOfferingVO createServiceOffering(final long userId, final boole
24112411
limitResourceUse, volatileVm, displayText, typedProvisioningType, localStorageRequired, false, tags, isSystem, vmType,
24122412
domainId, hostTag, deploymentPlanner);
24132413

2414-
if (Boolean.TRUE.equals(isCustomizedIops)) {
2414+
if (Boolean.TRUE.equals(isCustomizedIops) || isCustomizedIops == null) {
24152415
minIops = null;
24162416
maxIops = null;
24172417
} else {
@@ -2632,7 +2632,7 @@ protected DiskOfferingVO createDiskOffering(final Long userId, final Long domain
26322632
isCustomized = true;
26332633
}
26342634

2635-
if (Boolean.TRUE.equals(isCustomizedIops)) {
2635+
if (Boolean.TRUE.equals(isCustomizedIops) || isCustomizedIops == null) {
26362636
minIops = null;
26372637
maxIops = null;
26382638
} else {

0 commit comments

Comments
 (0)