Merge pull request #1061 from BigRoy/bugfix/dirmap_get_mappings

AY-6502_Fix Maya dirmap settings
This commit is contained in:
Roy Nieterau 2024-12-30 11:19:39 +01:00 committed by GitHub
commit 7f45726bff
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -117,10 +117,7 @@ class HostDirmap(ABC):
It checks if Site Sync is enabled and user chose to use local
site, in that case configuration in Local Settings takes precedence
"""
dirmap_label = "{}-dirmap".format(self.host_name)
mapping_sett = self.project_settings[self.host_name].get(dirmap_label,
{})
mapping_sett = self.project_settings[self.host_name].get("dirmap", {})
local_mapping = self._get_local_sync_dirmap()
mapping_enabled = mapping_sett.get("enabled") or bool(local_mapping)
if not mapping_enabled: