You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by GitBox <gi...@apache.org> on 2018/02/23 17:19:59 UTC
[GitHub] rafaelweingartner commented on a change in pull request #2231: [CLOUDSTACK-10039] Adding IOPS/GB offering
rafaelweingartner commented on a change in pull request #2231: [CLOUDSTACK-10039] Adding IOPS/GB offering
URL: https://github.com/apache/cloudstack/pull/2231#discussion_r170310191
##########
File path: server/src/main/java/com/cloud/configuration/ConfigurationManagerImpl.java
##########
@@ -2566,6 +2567,61 @@ protected DiskOfferingVO createDiskOffering(final Long userId, final Long domain
isCustomized = true;
}
+ if (minIopsPerGb != null || maxIopsPerGb != null) {
+
+ if (!isCustomized) {
+ throw new InvalidParameterValueException("Cannot set Min/Max IOPS/GB for a fixed size disk offering");
+ }
+
+ if ((isCustomizedIops != null && isCustomizedIops) || minIops != null || maxIops != null) {
Review comment:
Can you use BooleanUtils here?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services