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..142ba7b7b 100644 --- a/Netskope/netskope_modules/connector_pull_events_v2.py +++ b/Netskope/netskope_modules/connector_pull_events_v2.py @@ -177,6 +177,16 @@ def dataexports(self) -> list[tuple[NetskopeEventType, NetskopeAlertType | None] (NetskopeEventType.ALERT, NetskopeAlertType.UBA), ] + @cached_property + def configuration_uuid(self) -> str | None: + if self.module.trigger_configuration_uuid is not None: + return self.module.trigger_configuration_uuid + + elif self.module.connector_configuration_uuid is not None: + return self.module.connector_configuration_uuid + + return None + def get_index_name(self, event_type: NetskopeEventType, alert_type: NetskopeAlertType | None) -> str: """ return a index name for the iterator @@ -188,7 +198,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] = {