mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
OP-4512 - fix normalize local name
'local' should be returned for local site only
This commit is contained in:
parent
ad9f185816
commit
c85594c324
1 changed files with 2 additions and 1 deletions
|
|
@ -5,6 +5,7 @@ import threading
|
|||
import time
|
||||
|
||||
from openpype.lib import Logger
|
||||
from openpype.lib.local_settings import get_local_site_id
|
||||
from openpype.pipeline import Anatomy
|
||||
from .abstract_provider import AbstractProvider
|
||||
|
||||
|
|
@ -220,6 +221,6 @@ class LocalDriveHandler(AbstractProvider):
|
|||
|
||||
def _normalize_site_name(self, site_name):
|
||||
"""Transform user id to 'local' for Local settings"""
|
||||
if site_name != 'studio':
|
||||
if site_name == get_local_site_id():
|
||||
return 'local'
|
||||
return site_name
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue