Skip to content

Commit 389bd5e

Browse files
smtakedaankit-bhatnagar167
authored andcommitted
SNOW-70884: Custom OCSP Cache Server URL via Environment Variable
1 parent 7f78308 commit 389bd5e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

connection.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,8 @@ def __open_connection(self):
588588
ocsp_cache_server = \
589589
u'http://ocsp{}/ocsp_response_cache.json'.format(
590590
self.host[self.host.index('.'):])
591-
os.environ['SF_OCSP_RESPONSE_CACHE_SERVER_URL'] = ocsp_cache_server
591+
if 'SF_OCSP_RESPONSE_CACHE_SERVER_URL' not in os.environ:
592+
os.environ['SF_OCSP_RESPONSE_CACHE_SERVER_URL'] = ocsp_cache_server
592593
logger.debug(u"OCSP Cache Server is updated: %s", ocsp_cache_server)
593594
else:
594595
if 'SF_OCSP_RESPONSE_CACHE_SERVER_URL' in os.environ:

0 commit comments

Comments
 (0)