add host name to possible keys in template

This commit is contained in:
Jakub Trllo 2022-04-06 15:39:50 +02:00
parent 8167a65f59
commit fe39d0a300

View file

@ -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: