exoscale / cs

A simple, yet powerful CloudStack API client for python and the command-line.
BSD 3-Clause "New" or "Revised" License
88 stars 36 forks source link

How to tell cs to use proxy? #78

Closed synergiator closed 5 years ago

synergiator commented 5 years ago

CS incorporates the requests library which supports proxies.

http://docs.python-requests.org/en/latest/api/#module-requests

How can I pass the proxy confguration to it through cs?

In a proxy environment, the library does not seem to read in standard system http_proxy variables.

greut commented 5 years ago

taking a closer look at it, it seems to be supported by requests using the environment variables.

http://docs.python-requests.org/en/master/user/advanced/#proxies

synergiator commented 5 years ago

indeed, you're right! thanks

greut commented 5 years ago

Cheers,