diff --git a/pkg/utils/tagmanager.go b/pkg/utils/tagmanager.go index 3d5079a..5723023 100644 --- a/pkg/utils/tagmanager.go +++ b/pkg/utils/tagmanager.go @@ -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)