Merge pull request #117 from foomo/fix/modified-templates

fix: modified template id
This commit is contained in:
Kevin Franklin Kim 2025-04-15 15:49:10 +02:00 committed by GitHub
commit 9d9a7352eb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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