summaryrefslogtreecommitdiffstats
path: root/dcae-cli/dcae_cli/util/profiles.py
diff options
context:
space:
mode:
authorMichael Hwang <mhwang@research.att.com>2017-09-15 13:41:58 -0400
committerMichael Hwang <mhwang@research.att.com>2017-09-18 13:00:59 -0400
commit4188380fb7b806640103f557afec344455787a34 (patch)
treec5bbe244980f567012f6dbbcd1b3bb5ddc5ed37c /dcae-cli/dcae_cli/util/profiles.py
parent5a7ecc5f553c6416beb7327a55967287b0645d14 (diff)
Make server url into a user inputted config param
Change-Id: I90e94445fe0f3c003307355cade493e97d0a202d Issue-Id: DCAEGEN2-110 Signed-off-by: Michael Hwang <mhwang@research.att.com>
Diffstat (limited to 'dcae-cli/dcae_cli/util/profiles.py')
-rw-r--r--dcae-cli/dcae_cli/util/profiles.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/dcae-cli/dcae_cli/util/profiles.py b/dcae-cli/dcae_cli/util/profiles.py
index 7accf24..83a7ca9 100644
--- a/dcae-cli/dcae_cli/util/profiles.py
+++ b/dcae-cli/dcae_cli/util/profiles.py
@@ -95,7 +95,8 @@ def reinit_profiles():
"""
# Grab the remote profiles and merge it in
try:
- new_profiles = util.fetch_file_from_nexus("/dcae-cli/profiles.json")
+ server_url = config.get_server_url()
+ new_profiles = util.fetch_file_from_web(server_url, "/dcae-cli/profiles.json")
except:
# REVIEW: Should we allow users to manually setup their config if not
# able to pull from remote server?