From e880dc44bf788aae9a97954f015eae5d635ea7fc Mon Sep 17 00:00:00 2001 From: Tal Borenstein Date: Thu, 31 Oct 2024 18:08:45 +0200 Subject: [PATCH] fix: scopes --- keep/providers/gcpmonitoring_provider/gcpmonitoring_provider.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/keep/providers/gcpmonitoring_provider/gcpmonitoring_provider.py b/keep/providers/gcpmonitoring_provider/gcpmonitoring_provider.py index 806dcd920..1f366c478 100644 --- a/keep/providers/gcpmonitoring_provider/gcpmonitoring_provider.py +++ b/keep/providers/gcpmonitoring_provider/gcpmonitoring_provider.py @@ -107,7 +107,7 @@ def validate_scopes(self) -> dict[str, bool | str]: scopes = {} # try initializing the client to validate the scopes try: - self.client + self.client.list_entries(max_results=1) scopes["roles/logs.viewer"] = True except google.api_core.exceptions.PermissionDenied: scopes["roles/logs.viewer"] = (