瀏覽代碼

Added '/' which was missed out when performing status check when there is no slash '/' at the end of the url for Atlas server. (#2741)

Mahesh Balakrishnan 3 年之前
父節點
當前提交
1311c9b334
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      desktop/libs/metadata/src/metadata/catalog/atlas_client.py

+ 1 - 1
desktop/libs/metadata/src/metadata/catalog/atlas_client.py

@@ -72,7 +72,7 @@ class AtlasApi(Api):
     atlas_servers = CATALOG.API_URL.get().replace("%20", "").replace("['", "").replace("']", "").replace("'", "").split(',')
 
     for atlas_server in atlas_servers:
-      atlas_url = atlas_server + 'api/atlas/admin/status'
+      atlas_url = atlas_server.strip().strip('/') + '/api/atlas/admin/status'
       response = requests.get(atlas_url)
       atlas_is_active = response.json()