Skip to content

Commit

Permalink
fix use correct os environ to check HTTPS_PROXY (#5678)
Browse files Browse the repository at this point in the history
* fix use correct os environ to check HTTPS_PROXY

* edit CHANGELOG
  • Loading branch information
yitian-reevo authored Jul 20, 2022
1 parent 4dbc4f6 commit 5a4260a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ Fixed

Contributed by @S-T-A-R-L-O-R-D


* Fixed ``st2client/st2client/base.py`` file to use ``https_proxy``(not ``http_proxy``) to check HTTPS_PROXY environment variables.

Contributed by @wfgydbu

Added
~~~~~

Expand Down
2 changes: 1 addition & 1 deletion st2client/st2client/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,6 @@ def _print_client_settings(self, args):
)
print(
"HTTPS_PROXY: %s"
% (os.environ.get("http_proxy", os.environ.get("HTTPS_PROXY", "")))
% (os.environ.get("https_proxy", os.environ.get("HTTPS_PROXY", "")))
)
print("")

0 comments on commit 5a4260a

Please sign in to comment.