瀏覽代碼

HUE-9006 [catalog] update Atlas api endpoint to enable hue-atlas integration

Weixia 6 年之前
父節點
當前提交
237383cf2a

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

@@ -61,7 +61,7 @@ class AtlasApi(Api):
   def __init__(self, user=None):
     super(AtlasApi, self).__init__(user)
 
-    self._api_url = CATALOG.API_URL.get().strip('/')
+    self._api_url = CATALOG.API_URL.get().strip('/') + "/api/atlas"
     self._username = CATALOG.SERVER_USER.get()
     self._password = CATALOG.SERVER_PASSWORD.get()
 

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

@@ -43,7 +43,7 @@ def get_address():
 
 def get_api_url():
   address = get_address()
-  return address + 'api/atlas/' if address else None
+  return address if address else None
 
 def is_kerberos_enabled():
   return get_conf().get(_KERBEROS,'').upper() == 'TRUE'