Procházet zdrojové kódy

HUE-8480 [cluster] Provide a flag when we are in multi cluster mode

(cherry picked from commit a6262f260971f944787f60cd4ea85074da2559f6)
Romain Rigaux před 7 roky
rodič
revize
4a18e7136b
1 změnil soubory, kde provedl 4 přidání a 0 odebrání
  1. 4 0
      desktop/core/src/desktop/conf.py

+ 4 - 0
desktop/core/src/desktop/conf.py

@@ -1633,6 +1633,10 @@ def get_clusters(user):
   return OrderedDict(clusters)
 
 
+def has_multi_cluster():
+  return bool(CLUSTERS.get())
+
+
 CLUSTERS = UnspecifiedConfigSection(
   "clusters",
   help="One entry for each additional remote cluster Hue can interact with.",