aboutsummaryrefslogtreecommitdiffstats
path: root/onap-client/onap_client/config.py
diff options
context:
space:
mode:
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)