Skip to content

Commit

Permalink
fix: override provider_auth authentication
Browse files Browse the repository at this point in the history
  • Loading branch information
talboren committed Nov 26, 2024
1 parent 7b6723f commit 005426e
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions keep/providers/providers_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -463,11 +463,12 @@ def get_installed_providers(
)
)
if READ_ONLY_MODE:
provider_auth = {
key: "demo"
for key in provider_auth
if isinstance(provider_auth[key], str) and key != "name"
}
if "authentication" in provider_auth:
provider_auth["authentication"] = {
key: "demo"
for key in provider_auth["authentication"]
if isinstance(provider_auth["authentication"][key], str)
}
# Somehow the provider is installed but the secret is missing, probably bug in deletion
# TODO: solve its root cause
except Exception:
Expand Down

0 comments on commit 005426e

Please sign in to comment.