Warn user if environment variables are used#5816
Conversation
|
I spend hours debugging this error. I am aware that this odd behavior is fixed in 3.* release. |
|
Really nice pr, I checked it – warnings works well, can save a tons of devs time. |
Could you please suggest something? 😂 |
|
Closing/re-opening since I can't trigger CI to run here |
|
What's the status of this PR? |
From #6050 looks like 3.x isn't going to happen any time soon, and commitments to fix things in 3.x don't necessarily hold. |
I would love to see this PR getting merged. Let me know if you need something from myside. |
When session.verify=False, session.trust_env=True and REQUESTS_CA_BUNDLE or CURL_CA_BUNDLE is defined as environment variables then, notify user that requests will use environment variables rather than silently failing. partially fixes: psf#3829 Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
When session.verify=False, session.trust_env=True and
REQUESTS_CA_BUNDLE or CURL_CA_BUNDLE is defined as environment
variables then, notify user that requests will use environment variables
rather than silently failing.
partially fixes: #3829
Signed-off-by: Abhijeet Kasurde akasurde@redhat.com