Skip to content

Commit a1dbf59

Browse files
author
John Sutherland
committed
Fix sentinel connections
When passing args to Redis(), using the connection_kwargs args allows us to use authentication and other connection features.
1 parent cbb129d commit a1dbf59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

redis/sentinel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ def __init__(
240240
self.sentinel_kwargs = sentinel_kwargs
241241

242242
self.sentinels = [
243-
Redis(hostname, port, **self.sentinel_kwargs)
243+
Redis(hostname, port, **connection_kwargs)
244244
for hostname, port in sentinels
245245
]
246246
self.min_other_sentinels = min_other_sentinels

0 commit comments

Comments
 (0)