Browse Source

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

Romain Rigaux 7 years ago
parent
commit
eeb483b738
1 changed files with 1 additions and 1 deletions
  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']]
       )