Explorar el Código

[raz] Don't show other FS icons in RAZ enabled envs (#3043)

- In core-site.xml, IDBroker address is present for other FS also (gs, s3, abfs...). This enables the icons in the left nav and when clicking on them throws error which causes confusion.

- For RAZ enabled env, we should only enable filesystems by checking for Raz related configs.
Harsh Gupta hace 3 años
padre
commit
1db6bbdb17
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      desktop/core/src/desktop/lib/idbroker/conf.py

+ 3 - 1
desktop/core/src/desktop/lib/idbroker/conf.py

@@ -87,7 +87,9 @@ def get_cab_password(fs=None):
   return get_conf().get(_CNF_CAB_PASSWORD % fs) if fs else None
 
 def is_idbroker_enabled(fs=None):
-  return get_cab_address(fs) is not None
+  from desktop.conf import RAZ  # Must be imported dynamically in order to have proper value
+
+  return get_cab_address(fs) is not None and not RAZ.IS_ENABLED.get() # Skipping IDBroker for FS when RAZ is present
 
 def config_validator():
   res = []