remove 'AYON_SERVER_ENABLED' checks in 'ayon_core.lib'

This commit is contained in:
Jakub Trllo 2024-02-05 17:55:11 +01:00
parent 8d6778a4c2
commit f2a6a4d157
11 changed files with 67 additions and 342 deletions

View file

@ -3,7 +3,7 @@
import sys
import os
from ayon_core.lib.local_settings import OpenPypeSettingsRegistry
from ayon_core.lib.local_settings import AYONSettingsRegistry
from ayon_core.lib import Logger, run_subprocess
from .rr_job import RRJob, SubmitFile, SubmitterParameter
from ayon_core.lib.vendor_bin_utils import find_tool_in_custom_paths
@ -154,7 +154,7 @@ class Api:
# Probably best way until we setup our own user management would be
# to encrypt password and save it to json locally. Not bulletproof
# but at least it is not stored in plaintext.
reg = OpenPypeSettingsRegistry()
reg = AYONSettingsRegistry("rr_settings")
try:
rr_user = reg.get_item("rr_username")
rr_password = reg.get_item("rr_password")