ynput / ayon-backend

Server codebase with API access to AYON

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Site Settings: not available `settings_variant` value

kalisp opened this issue · comments

Story

Deadline Site Settings are using dynamic enumerator to pull values from Studio Settings to populate dropdown. That stopped working.

It seems that it because magical settings_variant variable here https://github.com/ynput/ayon-core/blob/develop/server_addon/deadline/server/settings/main.py#L27 is None when triggered from Site Settings

To reproduce

  1. rename DL server name ayon+settings://deadline/deadline_urls
    image
  2. Go to Site Settings and print settings_variant in ayon-docker/addons/deadline/0.1.12/server/settings/main.py.defined_deadline_ws_name_enum_resolver
    image
  3. In Studio Settings tab it currently prints name of bundle, in Site Settings it prints None

Expected behavior

It should probably return production value and query Production bundle

Environment

  • Server version: 1.1.3+DEVELOP
  • Server host OS: Win