From 74278035bbbb535274f74bb00c4e71eb4daf2fe2 Mon Sep 17 00:00:00 2001 From: Bin Yang Date: Mon, 3 Feb 2020 18:49:15 +0800 Subject: Enable the usage of msb https endpoint Change-Id: I96ef526f1aa99415f45bc8dfdd8d737f8bd5eed5 Issue-ID: MULTICLOUD-978 Signed-off-by: Bin Yang --- share/common/utils/restcall.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'share/common/utils') 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) -- cgit 1.2.3-korg