Skip to content

Commit 47f0cd1

Browse files
committed
Address zero IOPS
1 parent c3f41a9 commit 47f0cd1

File tree

1 file changed

+1
-1
lines changed
  • plugins/hypervisors/vmware/src/main/java/com/cloud/hypervisor/vmware/resource

1 file changed

+1
-1
lines changed

plugins/hypervisors/vmware/src/main/java/com/cloud/hypervisor/vmware/resource/VmwareResource.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1037,7 +1037,7 @@ private void setDiskIops(VirtualDisk disk, Long newMinIops, Long newMaxIops) {
10371037
StorageIOAllocationInfo storageIOAllocation = new StorageIOAllocationInfo();
10381038
Long iops = -1L;
10391039

1040-
if (ObjectUtils.allNotNull(newMinIops, newMaxIops)) {
1040+
if (ObjectUtils.allNotNull(newMinIops, newMaxIops) && newMinIops > 0 && newMaxIops > 0) {
10411041
iops = newMinIops + newMaxIops;
10421042
}
10431043

0 commit comments

Comments
 (0)