Skip to content

Commit b9aa906

Browse files
committed
list svc offerings with other stg tags when global setting is disabled
1 parent 888ef5e commit b9aa906

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3267,7 +3267,7 @@ private Pair<List<ServiceOfferingJoinVO>, Integer> searchForServiceOfferingsInte
32673267
if (currentVmOffering != null) {
32683268
DiskOfferingVO diskOffering = _diskOfferingDao.findByIdIncludingRemoved(currentVmOffering.getDiskOfferingId());
32693269
List<String> storageTags = com.cloud.utils.StringUtils.csvTagsToList(diskOffering.getTags());
3270-
if (!storageTags.isEmpty()) {
3270+
if (!storageTags.isEmpty() && VolumeApiServiceImpl.MatchStoragePoolTagsWithDiskOffering.value()) {
32713271
SearchBuilder<ServiceOfferingJoinVO> sb = _srvOfferingJoinDao.createSearchBuilder();
32723272
for(String tag : storageTags) {
32733273
sb.and(tag, sb.entity().getTags(), Op.FIND_IN_SET);

0 commit comments

Comments
 (0)