diff --git a/pkg/app/tag.go b/pkg/app/tag.go index 5a03bd8..b0cbf64 100644 --- a/pkg/app/tag.go +++ b/pkg/app/tag.go @@ -16,7 +16,7 @@ func (c *PolicyApp) Tag(existingRef, newRef string) error { return err } existingRefParsed := existingRef - if strings.Contains(existingRef, ":") { + if strings.Contains(existingRef, ":") || strings.Contains(existingRef, "/") { existingRefParsed, err = parser.CalculatePolicyRef(existingRef, c.Configuration.DefaultDomain) if err != nil { return err