Merge branch 'develop' into enhancement/attributes_by_families

This commit is contained in:
Roy Nieterau 2024-12-30 11:30:27 +01:00 committed by GitHub
commit c1b1c10acf
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: