Browse Source

[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 3 years ago
parent
commit
1db6bbdb17
1 changed files with 3 additions and 1 deletions
  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 = []