fix: modified template id

This commit is contained in:
Kevin Franklin Kim 2025-04-15 09:43:35 +02:00
parent f93177867a
commit f2efac7342
No known key found for this signature in database

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)