diff options
author | stark, steven <steven.stark@att.com> | 2021-09-15 09:08:20 -0700 |
---|---|---|
committer | stark, steven <steven.stark@att.com> | 2021-09-15 09:08:20 -0700 |
commit | c49136b9a48943a681d47090467cd99693fb5129 (patch) | |
tree | 7e5ef5d750961e42ec79e7072df5717642801539 /onap-client/onap_client/config.py | |
parent | e330184a81a453780deca68afd6e764c0eb00109 (diff) |
Issue-ID: VVP-565
Signed-off-by: stark, steven <steven.stark@att.com>
Change-Id: I734dc5e7f66b2dee4a9ce676c6ad941c2778b83c
Diffstat (limited to 'onap-client/onap_client/config.py')
-rw-r--r-- | onap-client/onap_client/config.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/onap-client/onap_client/config.py b/onap-client/onap_client/config.py index e7d9d6d..33b2150 100644 --- a/onap-client/onap_client/config.py +++ b/onap-client/onap_client/config.py @@ -91,6 +91,17 @@ class Config: def application_id(self): return "robot-ete" + @property + def http_proxy(self): + return self.config.get("HTTP_PROXY") + + @property + def proxies(self): + return { + "http": self.http_proxy, + "https": self.http_proxy + } + def load_config(config_file, *config_args): config = Config(config_file) |