Skip to content

Commit

Permalink
Added password check and omit if a password doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
ryannova committed Sep 13, 2024
1 parent e49f378 commit 352e7df
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion merlin/managers/redis_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@ def get_redis_connection(self) -> redis.Redis:
try:
password = get_backend_password(password_file)
except IOError:
password = CONFIG.results_backend.password
password = None
if hasattr(CONFIG.results_backend, "password"):
password = CONFIG.results_backend.password

has_ssl = hasattr(CONFIG.results_backend, "cert_reqs")
ssl_cert_reqs = "required"
Expand Down

0 comments on commit 352e7df

Please sign in to comment.