Skip to content

Commit

Permalink
Added check for HEADLESS_PUBLISH
Browse files Browse the repository at this point in the history
It should look for AYON_SG_USERNAME even on farm, it shouldn't look for get_local_login
  • Loading branch information
kalisp committed Nov 5, 2024
1 parent 06f73b2 commit 6c7b9b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/ayon_shotgrid/addon.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def get_local_storage_key(self):
def get_credentials(self):
from .lib import credentials

if self._client_login_type == "env":
if self._client_login_type == "env" or os.getenv("HEADLESS_PUBLISH"):
user_login = os.getenv("AYON_SG_USERNAME")
sg_password = None

Expand Down

0 comments on commit 6c7b9b1

Please sign in to comment.