summaryrefslogtreecommitdiffstats
path: root/share/common
diff options
context:
space:
mode:
authorBin Yang <bin.yang@windriver.com>2020-02-03 18:49:15 +0800
committerBin Yang <bin.yang@windriver.com>2020-02-03 18:49:15 +0800
commit74278035bbbb535274f74bb00c4e71eb4daf2fe2 (patch)
tree25e08619e3191a084587a72676762b5dbff58baa /share/common
parent5f8e9379af90e81ad4a4d27b8cf6afb6edb40569 (diff)
Enable the usage of msb https endpoint
Change-Id: I96ef526f1aa99415f45bc8dfdd8d737f8bd5eed5 Issue-ID: MULTICLOUD-978 Signed-off-by: Bin Yang <bin.yang@windriver.com>
Diffstat (limited to 'share/common')
-rw-r--r--share/common/utils/restcall.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/share/common/utils/restcall.py b/share/common/utils/restcall.py
index 9e204564..1c2e478b 100644
--- a/share/common/utils/restcall.py
+++ b/share/common/utils/restcall.py
@@ -117,7 +117,8 @@ def _call_req(base_url, user, passwd, auth_type,
def req_by_msb(resource, method, content=''):
- base_url = "http://%s:%s/" % (settings.MSB_SERVICE_ADDR, settings.MSB_SERVICE_PORT)
+ base_url = "%s://%s:%s/" % (
+ settings.MSB_SERVICE_PROTOCOL, settings.MSB_SERVICE_ADDR, settings.MSB_SERVICE_PORT)
return _call_req(base_url, "", "", rest_no_auth,
resource, method, "", content)