From cfe54b0d35da8dc1dd6c50e63ef0fa1290656feb Mon Sep 17 00:00:00 2001 From: Tal Date: Tue, 10 Dec 2024 21:13:07 +0200 Subject: [PATCH] fix: linked_providers outside of PROVIDER_DISTRIBUTION_ENABLED (#2800) --- keep/api/routes/providers.py | 3 +-- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/keep/api/routes/providers.py b/keep/api/routes/providers.py index 9e96f6c9d..41b2bb480 100644 --- a/keep/api/routes/providers.py +++ b/keep/api/routes/providers.py @@ -69,9 +69,8 @@ def get_providers( logger.info("Getting installed providers", extra={"tenant_id": tenant_id}) providers = ProvidersService.get_all_providers() installed_providers = ProvidersService.get_installed_providers(tenant_id) + linked_providers = ProvidersService.get_linked_providers(tenant_id) if PROVIDER_DISTRIBUTION_ENABLED: - linked_providers = ProvidersService.get_linked_providers(tenant_id) - # generate distribution only if not in read only mode if READ_ONLY: for provider in linked_providers + installed_providers: diff --git a/pyproject.toml b/pyproject.toml index 3412595b1..75f5dbdeb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "keep" -version = "0.31.4" +version = "0.31.5" description = "Alerting. for developers, by developers." authors = ["Keep Alerting LTD"] packages = [{include = "keep"}]