mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
OP-1920 - override get_local_site_id from env var
This commit is contained in:
parent
19b5d47b24
commit
421ac7716e
1 changed files with 5 additions and 0 deletions
|
|
@ -522,6 +522,11 @@ def get_local_site_id():
|
|||
|
||||
Identifier is created if does not exists yet.
|
||||
"""
|
||||
# override local id from environment
|
||||
# used for background syncing
|
||||
if os.environ.get("SITE_SYNC_LOCAL_ID"):
|
||||
return os.environ["SITE_SYNC_LOCAL_ID"]
|
||||
|
||||
registry = OpenPypeSettingsRegistry()
|
||||
try:
|
||||
return registry.get_item("localId")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue