Skip to content

Commit

Permalink
fix: linked_providers outside of PROVIDER_DISTRIBUTION_ENABLED (#2800)
Browse files Browse the repository at this point in the history
  • Loading branch information
talboren authored Dec 10, 2024
1 parent bfe2179 commit cfe54b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions keep/api/routes/providers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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"}]
Expand Down

0 comments on commit cfe54b0

Please sign in to comment.