Merge pull request #106 from foomo/fix/template-reference

fix: use template gallery id
This commit is contained in:
Kevin Franklin Kim 2025-03-17 11:43:03 +01:00 committed by GitHub
commit 3880d503f1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -7,6 +7,9 @@ import (
)
func TemplateType(template *tagmanager.CustomTemplate) string {
if template.GalleryReference != nil && template.GalleryReference.GalleryTemplateId != "" {
return fmt.Sprintf("cvt_%s", template.GalleryReference.GalleryTemplateId)
}
return fmt.Sprintf("cvt_%s_%s", template.ContainerId, template.TemplateId)
}