mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
added helper function to get secure item key the same way
This commit is contained in:
parent
b742f3a9c5
commit
5a7d19337c
1 changed files with 5 additions and 0 deletions
|
|
@ -28,6 +28,11 @@ def get_ftrack_hostname(ftrack_server=None):
|
|||
return urlparse(ftrack_server).hostname
|
||||
|
||||
|
||||
def _get_ftrack_secure_key(hostname):
|
||||
"""Secure item key for entered hostname."""
|
||||
return "/".join(("ftrack", hostname))
|
||||
|
||||
|
||||
def get_credentials(ftrack_server=None):
|
||||
credentials = {}
|
||||
if not os.path.exists(CREDENTIALS_PATH):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue