aboutsummaryrefslogtreecommitdiffstats
path: root/onap-client/onap_client/config.py
diff options
context:
space:
mode:
authorstark, steven <steven.stark@att.com>2021-09-15 09:08:20 -0700
committerstark, steven <steven.stark@att.com>2021-09-15 09:08:20 -0700
commitc49136b9a48943a681d47090467cd99693fb5129 (patch)
tree7e5ef5d750961e42ec79e7072df5717642801539 /onap-client/onap_client/config.py
parente330184a81a453780deca68afd6e764c0eb00109 (diff)
[VVP] Adding proxy to onap-client configHEADmaster
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.py11
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)