Skip to content

Commit

Permalink
Fix geoip enrichments client (#298)
Browse files Browse the repository at this point in the history
  • Loading branch information
lootag authored Dec 9, 2024
1 parent 35d21f3 commit 754f541
Show file tree
Hide file tree
Showing 17 changed files with 2,264 additions and 1,227 deletions.
14 changes: 13 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -709,4 +709,16 @@ New Features:

DEVELOPERS:

* go version was update to 1.23.x
* go version was update to 1.23.x

# Release 1.18.13

New features:

* added low severity alerts

# Release 1.18.14

Fix:

* Fixed geo_ip enrichments
9 changes: 5 additions & 4 deletions coralogix/clientset/enrichments-client.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// Copyright 2024 Coralogix Ltd.
//
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//
// https://www.apache.org/licenses/LICENSE-2.0
//
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Expand All @@ -16,6 +16,7 @@ package clientset

import (
"context"
"strings"

enrichment "terraform-provider-coralogix/coralogix/clientset/grpc/enrichment/v1"
)
Expand Down Expand Up @@ -62,7 +63,7 @@ func (e EnrichmentsClient) GetEnrichmentsByType(ctx context.Context, enrichmentT

result := make([]*enrichment.Enrichment, 0)
for _, enrichment := range resp.GetEnrichments() {
if enrichment.GetEnrichmentType().String() == enrichmentType+":{}" {
if strings.Contains(enrichment.GetEnrichmentType().String(), enrichmentType) {
result = append(result, enrichment)
}
}
Expand Down
179 changes: 0 additions & 179 deletions coralogix/clientset/grpc/enrichment/v1/audit_log.pb.go

This file was deleted.

Loading

0 comments on commit 754f541

Please sign in to comment.