Merge "redis: Fix wrong type used to parse socket_keepalive"
This commit is contained in:
commit
1d0ece27a4
@ -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.
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user