Browse Source

HUE-8330 [core] Adding namespace to compute cluster

Romain Rigaux 7 years ago
parent
commit
bc03c9a259
1 changed files with 2 additions and 1 deletions
  1. 2 1
      desktop/core/src/desktop/api2.py

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

@@ -103,7 +103,8 @@ def get_context_computes(request, interface):
   if interface == 'hive':
     computes['hive'] = [{
         'id': cluster['id'],
-        'name': cluster['name']
+        'name': cluster['name'],
+        'namespace': cluster['id'] # Dummy
       } for cluster in clusters
     ]