Explorar o código

HUE-8586 [notebook] Fix interface name conflict on data API calls with multi cluster

Romain Rigaux %!s(int64=7) %!d(string=hai) anos
pai
achega
3f28d33
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      apps/metastore/src/metastore/views.py

+ 1 - 1
apps/metastore/src/metastore/views.py

@@ -694,4 +694,4 @@ def _get_db(user, source_type=None, cluster=None):
 
 
 def _get_servername(db):
-  return 'hive' if db.server_name == 'beeswax' else db.server_name
+  return 'hive' if db.server_name == 'beeswax' else db.server_name.rsplit('-', 1)[0]