Skip to content

Commit 2022c51

Browse files
authored
Merge pull request #2108 from afumagalli98/fix/veritas-licenses
fix: add filter for ignored licenses in FindClusterVeritasLicenses
2 parents 3c2cbfa + 31d477c commit 2022c51

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

api-service/database/host_cluster_veritas.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,13 @@ func (md *MongoDatabase) FindClusterVeritasLicenses(filter dto.GlobalFilter) ([]
4646
{Key: "path", Value: "$features.oracle.database.databases.licenses"},
4747
{Key: "preserveNullAndEmptyArrays", Value: true},
4848
}}},
49+
bson.D{
50+
{Key: "$match",
51+
Value: bson.D{
52+
{Key: "features.oracle.database.databases.licenses.ignored", Value: false},
53+
},
54+
},
55+
},
4956
bson.D{
5057
{Key: "$lookup",
5158
Value: bson.D{

0 commit comments

Comments
 (0)