File tree Expand file tree Collapse file tree
ai_agentic_test_local_tools_app/bin Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -504,7 +504,7 @@ add the following snippet to your code:
504504
505505``` py
506506CA_TRUST_STORE = " /opt/splunk/openssl/cert.pem"
507- if os.environ[ " SSL_CERT_FILE" ] == CA_TRUST_STORE and not os.path.exists(CA_TRUST_STORE ):
507+ if os.environ.get( " SSL_CERT_FILE" ) == CA_TRUST_STORE and not os.path.exists(CA_TRUST_STORE ):
508508 os.environ[" SSL_CERT_FILE" ] = " "
509509```
510510
Original file line number Diff line number Diff line change 3232# does not exist on the filesystem. As a workaround in such case if it does not exist,
3333# remove the env, this causes the default CAs to be used instead.
3434CA_TRUST_STORE = "/opt/splunk/openssl/cert.pem"
35- if os .environ ["SSL_CERT_FILE" ] == CA_TRUST_STORE and not os .path .exists (CA_TRUST_STORE ):
35+ if os .environ .get ("SSL_CERT_FILE" ) == CA_TRUST_STORE and not os .path .exists (
36+ CA_TRUST_STORE
37+ ):
3638 os .environ ["SSL_CERT_FILE" ] = ""
3739
3840
Original file line number Diff line number Diff line change 3333# does not exist on the filesystem. As a workaround in such case if it does not exist,
3434# remove the env, this causes the default CAs to be used instead.
3535CA_TRUST_STORE = "/opt/splunk/openssl/cert.pem"
36- if os .environ ["SSL_CERT_FILE" ] == CA_TRUST_STORE and not os .path .exists (CA_TRUST_STORE ):
36+ if os .environ .get ("SSL_CERT_FILE" ) == CA_TRUST_STORE and not os .path .exists (
37+ CA_TRUST_STORE
38+ ):
3739 os .environ ["SSL_CERT_FILE" ] = ""
3840
3941
You can’t perform that action at this time.
0 commit comments