1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Fixes #7282: Fix KeyError exception when INSECURE_SKIP_TLS_VERIFY is true

This commit is contained in:
jeremystretch
2021-09-17 10:16:06 -04:00
parent 1e8ee5e59b
commit b0abfee35b
2 changed files with 3 additions and 1 deletions

View File

@ -262,6 +262,7 @@ if CACHING_REDIS_SENTINELS:
CACHES['default']['OPTIONS']['CLIENT_CLASS'] = 'django_redis.client.SentinelClient'
CACHES['default']['OPTIONS']['SENTINELS'] = CACHING_REDIS_SENTINELS
if CACHING_REDIS_SKIP_TLS_VERIFY:
CACHES['default']['OPTIONS'].setdefault('CONNECTION_POOL_KWARGS', {})
CACHES['default']['OPTIONS']['CONNECTION_POOL_KWARGS']['ssl_cert_reqs'] = False