Open mklassen opened 2 years ago
Now that https://github.com/lxc/pylxd/pull/535 has merged, you should be able to create a requests.Session
, set trust_env
to False
and then pass it into the pylxd.Client
which will help isolate you from the environment
If
verify
is set toFalse
and the environment variablesREQUESTS_CA_BUNDLE
orCURL_CA_BUNDLE
happen to be set, then these environment variables will override the explicitverify=False
. This is because inSession.merge_environment_settings
the request levelverify
is merged with the session levelverify
after the request levelverify
is obtained for the environment and the default fortrust_env
is true.