Skip to content

Commit a0a3038

Browse files
Update disk offering count (for listDiskOfferings api) while removing offerings with tags mismatch with storage tags
1 parent 6ae97f6 commit a0a3038

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

server/src/main/java/com/cloud/api/query/QueryManagerImpl.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3675,6 +3675,7 @@ private Pair<List<DiskOfferingJoinVO>, Integer> searchForDiskOfferingsInternal(L
36753675
String[] offeringTagsArray = (offeringTags == null || offeringTags.isEmpty()) ? new String[0] : offeringTags.split(",");
36763676
if (!CollectionUtils.isSubCollection(Arrays.asList(requiredTagsArray), Arrays.asList(offeringTagsArray))) {
36773677
iteratorForTagsChecking.remove();
3678+
count--;
36783679
}
36793680
}
36803681
}

0 commit comments

Comments
 (0)