Merge "redis: Fix wrong type used to parse socket_keepalive"

This commit is contained in:
Zuul 2024-02-16 18:30:15 +00:00 committed by Gerrit Code Review
commit 1d0ece27a4
2 changed files with 10 additions and 1 deletions

View File

@ -0,0 +1,9 @@
---
upgrade:
- |
The ``socket_keepalive`` option of redis driver no longer accepts integers
other than 0 and 1.
fixes:
- |
The ``socket_keepalive`` option of redis driver now accepts boolean values.

View File

@ -286,13 +286,13 @@ class RedisDriver(coordination.CoordinationDriverCachedRunWatchers,
#: Client arguments that are expected to be boolean convertible.
CLIENT_BOOL_ARGS = frozenset([
'retry_on_timeout',
'socket_keepalive',
'ssl',
])
#: Client arguments that are expected to be int convertible.
CLIENT_INT_ARGS = frozenset([
'db',
'socket_keepalive',
])
#: Client arguments that are expected to be float convertible.