We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
REDIS_HOST
1 parent 2270a93 commit ecd9be9Copy full SHA for ecd9be9
nslsii/utils.py
@@ -51,8 +51,9 @@ def open_redis_client(
51
"""
52
Helper function to get the redis client connection.
53
54
- redis_url = os.getenv("REDIS_HOST", redis_url)
55
- if not redis_url:
+ if os.getenv("REDIS_HOST"):
+ redis_url = os.getenv("REDIS_HOST")
56
+ if redis_url is None:
57
if redis_ssl:
58
client_loc_id = (
59
redis_prefix if redis_prefix else socket.gethostname().split("-")[0]
0 commit comments