Skip to content

Commit d990ae7

Browse files
author
Steven Buss
committed
fix(client): let requests read env vars
This fix lets the `requests` library read configuration from environment variables. This is intended to fix a problem I had with being unable to authenticate with deis when using a self-signed cert from a debian system. By default, requests does not trust the system cert bundle on debian systems and requires either `verify=/path/to/bundle` (as a config value of requests.Session) or `REQUESTS_CA_BUNDLE=/path/to/bundle`. But, in order for that environment variable to get read, `requests.Session.trust_env` must be `True`.
1 parent ba950c2 commit d990ae7

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

client/deis.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ class Session(requests.Session):
9191

9292
def __init__(self):
9393
super(Session, self).__init__()
94-
self.trust_env = False
9594
config_dir = os.path.expanduser('~/.deis')
9695
self.proxies = {
9796
"http": os.getenv("http_proxy"),

0 commit comments

Comments
 (0)