Skip to content

Commit 2270a93

Browse files
Fixes bug at opls
1 parent 1a7a9ee commit 2270a93

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

nslsii/sync_experiment/sync_experiment.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,11 @@ def switch_redis_proposal(
180180
The updated redis dictionary.
181181
"""
182182
location = prefix if prefix else beamline
183-
redis_client = open_redis_client(redis_ssl=redis_ssl, redis_prefix=location)
183+
if redis_ssl:
184+
redis_client = open_redis_client(redis_ssl=redis_ssl, redis_prefix=location)
185+
else:
186+
redis_url=f"info.{beamline}.nsls2.bnl.gov"
187+
redis_client = open_redis_client(redis_ssl=redis_ssl, redis_prefix=location, redis_url=redis_url)
184188
if verbose:
185189
print(f"Redis connection info: {redis_client.client().connection}")
186190
prefix = f"{prefix}-" if prefix and not redis_ssl else ""

0 commit comments

Comments
 (0)