Explorar o código

HUE-8330 [core] Switch to use crn and not cluster name for fake namespaces in compute clusters API

Romain Rigaux %!s(int64=7) %!d(string=hai) anos
pai
achega
eeb483b738
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      desktop/core/src/desktop/api2.py

+ 1 - 1
desktop/core/src/desktop/api2.py

@@ -148,7 +148,7 @@ def get_context_computes(request, interface):
           'id': cluster.get('crn'),
           'name': cluster.get('clusterName'),
           'status': cluster.get('status'),
-          'namespace': cluster.get('namespaceCrn', cluster.get('clusterName')),
+          'namespace': cluster.get('namespaceCrn', cluster.get('crn')),
           'type': 'altus-adb'
         } for cluster in AnalyticDbApi(request.user).list_clusters()['clusters']]
       )