mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
add host name to possible keys in template
This commit is contained in:
parent
8167a65f59
commit
fe39d0a300
1 changed files with 3 additions and 1 deletions
|
|
@ -29,6 +29,7 @@ class IntegrateFtrackNote(pyblish.api.InstancePlugin):
|
|||
self.log.info("There are any integrated AssetVersions")
|
||||
return
|
||||
|
||||
host_name = instance.context.data["hostName"]
|
||||
comment = (instance.context.data.get("comment") or "").strip()
|
||||
if not comment:
|
||||
self.log.info("Comment is not set.")
|
||||
|
|
@ -107,7 +108,8 @@ class IntegrateFtrackNote(pyblish.api.InstancePlugin):
|
|||
format_data = {
|
||||
"intent": final_intent_label,
|
||||
"comment": comment,
|
||||
"published_paths": "\n".join(sorted(published_paths))
|
||||
"host_name": host_name,
|
||||
"published_paths": "\n".join(sorted(published_paths)),
|
||||
}
|
||||
comment = template.format(**format_data)
|
||||
if not comment:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue