OP-4845 - temporary fix for missing Ayon template

Not sure if it was decided that Ayon won't have default 'render' template as OP does, but this should workaround it for testing. Needs to be fixed!
This commit is contained in:
Petr Kalis 2023-07-18 19:38:08 +02:00
parent 31f2ff680a
commit bf831778d8

View file

@ -575,7 +575,13 @@ class ProcessSubmittedJobOnFarm(pyblish.api.InstancePlugin,
template_data["family"] = family
template_data["version"] = version
render_templates = anatomy.templates_obj["render"]
# temporary fix, Ayon Settings don't have 'render' template, but they
# have "publish" TODO!!!
template_name = "render"
if os.environ.get("USE_AYON_SERVER") == '1':
template_name = "publish"
render_templates = anatomy.templates_obj[template_name]
if "folder" in render_templates:
publish_folder = render_templates["folder"].format_strict(
template_data