diff --git a/CHANGES b/CHANGES index 24b52c54db..bae40a5e49 100644 --- a/CHANGES +++ b/CHANGES @@ -70,6 +70,7 @@ * Close Unix sockets if the connection attempt fails. This prevents `ResourceWarning`s. (#3314) * Close SSL sockets if the connection attempt fails, or if validations fail. (#3317) * Eliminate mutable default arguments in the `redis.commands.core.Script` class. (#3332) + * Fix passing arguments to Redis() when forming Sentinel connections. * 4.1.3 (Feb 8, 2022) * Fix flushdb and flushall (#1926) diff --git a/redis/sentinel.py b/redis/sentinel.py index 02aa244ede..6d069c4889 100644 --- a/redis/sentinel.py +++ b/redis/sentinel.py @@ -241,7 +241,7 @@ def __init__( self.sentinel_kwargs = sentinel_kwargs self.sentinels = [ - Redis(hostname, port, **self.sentinel_kwargs) + Redis(hostname, port, **connection_kwargs) for hostname, port in sentinels ] self.min_other_sentinels = min_other_sentinels