diff --git a/CHANGES b/CHANGES index 8750128b05..52d5eed9ae 100644 --- a/CHANGES +++ b/CHANGES @@ -67,6 +67,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 72b5bef548..44a26dda53 100644 --- a/redis/sentinel.py +++ b/redis/sentinel.py @@ -240,7 +240,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