mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
Fix - wrong key used, return back to 'root' instead of 'roots'
'root' follow existing pattern (in Anatomy etc.)
This commit is contained in:
parent
555fba179a
commit
b7cb006508
5 changed files with 8 additions and 8 deletions
|
|
@ -342,7 +342,7 @@ class HostDirmap:
|
|||
log.debug("remote overrides".format(remote_overrides))
|
||||
for root_name, active_site_dir in active_overrides.items():
|
||||
remote_site_dir = remote_overrides.get(root_name) or\
|
||||
sync_settings["sites"][remote_site]["roots"][root_name]
|
||||
sync_settings["sites"][remote_site]["root"][root_name]
|
||||
if os.path.isdir(active_site_dir):
|
||||
if not mapping.get("destination-path"):
|
||||
mapping["destination-path"] = []
|
||||
|
|
|
|||
|
|
@ -97,7 +97,7 @@ class DropboxHandler(AbstractProvider):
|
|||
},
|
||||
# roots could be overriden only on Project level, User cannot
|
||||
{
|
||||
"key": "roots",
|
||||
"key": "root",
|
||||
"label": "Roots",
|
||||
"type": "dict-roots",
|
||||
"object_type": {
|
||||
|
|
@ -389,7 +389,7 @@ class DropboxHandler(AbstractProvider):
|
|||
{"root": {"root_ONE": "value", "root_TWO":"value}}
|
||||
Format is importing for usage of python's format ** approach
|
||||
"""
|
||||
return self.presets['roots']
|
||||
return self.presets['root']
|
||||
|
||||
def resolve_path(self, path, root_config=None, anatomy=None):
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -129,7 +129,7 @@ class GDriveHandler(AbstractProvider):
|
|||
},
|
||||
# roots could be overriden only on Project leve, User cannot
|
||||
{
|
||||
"key": "roots",
|
||||
"key": "root",
|
||||
"label": "Roots",
|
||||
"type": "dict-roots",
|
||||
"object_type": {
|
||||
|
|
@ -174,7 +174,7 @@ class GDriveHandler(AbstractProvider):
|
|||
Format is importing for usage of python's format ** approach
|
||||
"""
|
||||
# GDrive roots cannot be locally overridden
|
||||
return self.presets['roots']
|
||||
return self.presets['root']
|
||||
|
||||
def get_tree(self):
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ class LocalDriveHandler(AbstractProvider):
|
|||
# for non 'studio' sites, 'studio' is configured in Anatomy
|
||||
editable = [
|
||||
{
|
||||
"key": "roots",
|
||||
"key": "root",
|
||||
"label": "Roots",
|
||||
"type": "dict-roots",
|
||||
"object_type": {
|
||||
|
|
@ -73,7 +73,7 @@ class LocalDriveHandler(AbstractProvider):
|
|||
"""
|
||||
editable = [
|
||||
{
|
||||
'key': "roots",
|
||||
'key': "root",
|
||||
'label': "Roots",
|
||||
'type': 'dict'
|
||||
}
|
||||
|
|
|
|||
|
|
@ -131,7 +131,7 @@ class SFTPHandler(AbstractProvider):
|
|||
},
|
||||
# roots could be overriden only on Project leve, User cannot
|
||||
{
|
||||
"key": "roots",
|
||||
"key": "root",
|
||||
"label": "Roots",
|
||||
"type": "dict-roots",
|
||||
"object_type": {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue