Explorar o código

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 %!s(int64=4) %!d(string=hai) anos
pai
achega
1311c9b334
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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()