Explorar o código

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

Romain Rigaux %!s(int64=7) %!d(string=hai) anos
pai
achega
fb6f219787
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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']