diff --git a/Netskope/CHANGELOG.md b/Netskope/CHANGELOG.md index 888e828d7..bcba19bcc 100644 --- a/Netskope/CHANGELOG.md +++ b/Netskope/CHANGELOG.md @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## Unreleased +## 2024-12-13 - 1.11.1 + +### Fixed + +- Fix generating index name + ## 2024-10-30 - 1.11.0 ### Changed diff --git a/Netskope/manifest.json b/Netskope/manifest.json index 7df34d53a..56b31995f 100644 --- a/Netskope/manifest.json +++ b/Netskope/manifest.json @@ -20,7 +20,7 @@ "name": "Netskope", "uuid": "1e3f2e33-fb9c-4387-bcf7-8d7ece37f913", "slug": "netskope", - "version": "1.11.0", + "version": "1.11.1", "categories": [ "Network" ] diff --git a/Netskope/netskope_modules/connector_pull_events_v2.py b/Netskope/netskope_modules/connector_pull_events_v2.py index f8149a06b..34e65fcf5 100644 --- a/Netskope/netskope_modules/connector_pull_events_v2.py +++ b/Netskope/netskope_modules/connector_pull_events_v2.py @@ -177,6 +177,13 @@ def dataexports(self) -> list[tuple[NetskopeEventType, NetskopeAlertType | None] (NetskopeEventType.ALERT, NetskopeAlertType.UBA), ] + @cached_property + def configuration_uuid(self) -> str: + if self.module.connector_configuration_uuid is not None: + return self.module.connector_configuration_uuid + + return self.module.trigger_configuration_uuid + def get_index_name(self, event_type: NetskopeEventType, alert_type: NetskopeAlertType | None) -> str: """ return a index name for the iterator @@ -188,7 +195,7 @@ def get_index_name(self, event_type: NetskopeEventType, alert_type: NetskopeAler if self.configuration.consumer_group and len(self.configuration.consumer_group) > 0: return self.configuration.consumer_group - return get_index_name(self.module.trigger_configuration_uuid, event_type, alert_type) + return get_index_name(self.configuration_uuid, event_type, alert_type) def create_iterator(self, event_type: NetskopeEventType, alert_type: NetskopeAlertType | None) -> NetskopeIterator: params: dict[str, str] = {