summaryrefslogtreecommitdiffstats
path: root/share/common/utils/restcall.py
diff options
context:
space:
mode:
Diffstat (limited to 'share/common/utils/restcall.py')
-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)