Browse Source

HUE-8330 [cluster] Fix typo when in pure multi cluster mode

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

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

@@ -1913,7 +1913,7 @@ class Cluster():
   def __init__(self, user):
     self.user = user
     self.clusters = get_clusters(user)
-    self.data = 'Altus' if IS_MULTICLUSTER_ONLY.get() else self.clusters[CLUSTER_ID.get()]
+    self.data = self.clusters['Altus' if IS_MULTICLUSTER_ONLY.get() else CLUSTER_ID.get()]
 
   def get_type(self):
     return self.data['type']