fix: correctly pass ssl_ca_certs to sentinel when enabled

v6.1.0 introduced a regression when making TLS in sentinel optional, with
an incorrectly named option being passed (ssl_cafile).

This change passes the correction option as was previously done in
v6.0.x.

Closes-Bug: #2063857
Change-Id: I784092daea1ab01e4c88157e1c017293a2cb44a8
This commit is contained in:
Daniel Porter 2024-04-26 17:14:52 +01:00 committed by Daniel Porter
parent c38b9440e6
commit d09659ed5b
1 changed files with 1 additions and 1 deletions

View File

@ -485,7 +485,7 @@ return 1
sentinel_kwargs[key] = kwargs[key]
if kwargs.pop('sentinel_ssl', False):
sentinel_kwargs['ssl'] = True
for key in ('ssl_certfile', 'ssl_keyfile', 'ssl_cafile'):
for key in ('ssl_certfile', 'ssl_keyfile', 'ssl_ca_certs'):
if key in kwargs:
sentinel_kwargs[key] = kwargs[key]
for key in ('username', 'password'):