X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=o2common%2Fconfig%2Fconfig.py;h=f488b7108e0fd9616298a776b02e50972060ddd6;hb=648c8f4b7f8a7bb69406c3d0a3ceacad86373704;hp=a2907c41263227e1edd9e1f6120535e2f8e21355;hpb=cf48d1f3e4ad5e8a5ca75cc6f5670b25e6817d8a;p=pti%2Fo2.git diff --git a/o2common/config/config.py b/o2common/config/config.py index a2907c4..f488b71 100644 --- a/o2common/config/config.py +++ b/o2common/config/config.py @@ -56,7 +56,7 @@ def get_api_url(): port_external = 30205 port = port_internal if host_external is None or host_external == '' \ else port_external - return f"http://{host}:{port}" + return f"https://{host}:{port}" def get_root_api_base(): @@ -348,9 +348,12 @@ def get_auth_provider(): def get_dms_support_profiles(): profiles = config.conf.API.DMS_SUPPORT_PROFILES - profiles = profiles.replace("'", "").replace( - '"', "").replace('[', "").replace(']', "") - profiles = profiles.split(',') + if profiles is None or profiles == '': + profiles = [] + elif "[" in profiles and "]" in profiles: + profiles = profiles.replace("'", "").replace( + '"', "").replace('[', "").replace(']', "") + profiles = profiles.split(',') if 'native_k8sapi' not in profiles: profiles.append('native_k8sapi') return profiles