Merge pull request #1915 from pypeclub/feature/1894_add_host_to_template_name_profiles

#1894 - adds host to template_name_profiles for filtering
This commit is contained in:
Petr Kalis 2021-08-25 13:52:40 +02:00 committed by GitHub
commit 53f504cf4e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 1 deletions

View file

@ -301,7 +301,9 @@ class IntegrateAssetNew(pyblish.api.InstancePlugin):
task_name = io.Session.get("AVALON_TASK")
family = self.main_family_from_instance(instance)
key_values = {"families": family, "tasks": task_name}
key_values = {"families": family,
"tasks": task_name,
"hosts": instance.data["anatomyData"]["app"]}
profile = filter_profiles(self.template_name_profiles, key_values,
logger=self.log)

View file

@ -496,6 +496,12 @@
"type": "list",
"object_type": "text"
},
{
"type": "hosts-enum",
"key": "hosts",
"label": "Hosts",
"multiselection": true
},
{
"key": "tasks",
"label": "Task names",