Renamed hosts to host_names for ExtractThumbnail

This commit is contained in:
Petr Kalis 2025-12-08 10:10:51 +01:00
parent 32bc4248fc
commit 89129dfeb4
3 changed files with 6 additions and 4 deletions

View file

@ -753,7 +753,7 @@ class ExtractThumbnail(pyblish.api.InstancePlugin):
task_name = task_data.get("name")
task_type = task_data.get("type")
filtering_criteria = {
"hosts": host_name,
"host_names": host_name,
"product_types": product_type,
"product_names": product_name,
"task_names": task_name,

View file

@ -168,7 +168,7 @@ def _convert_extract_thumbnail(overrides):
base_value = {
"product_types": [],
"hosts": [],
"host_names": [],
"task_types": [],
"task_names": [],
"product_names": [],

View file

@ -404,7 +404,9 @@ class ExtractThumbnailProfileModel(BaseSettingsModel):
product_types: list[str] = SettingsField(
default_factory=list, title="Product types"
)
hosts: list[str] = SettingsField(default_factory=list, title="Host names")
host_names: list[str] = SettingsField(
default_factory=list, title="Host names"
)
task_types: list[str] = SettingsField(
default_factory=list, title="Task types", enum_resolver=task_types_enum
)
@ -1474,7 +1476,7 @@ DEFAULT_PUBLISH_VALUES = {
"profiles": [
{
"product_types": [],
"hosts": [],
"host_names": [],
"task_types": [],
"task_names": [],
"product_names": [],