From bc5b834767b1ae2f93b4d49ea702e37ebcff4238 Mon Sep 17 00:00:00 2001 From: carabasdaniel Date: Mon, 27 May 2024 13:28:27 +0300 Subject: [PATCH] Fix tag command (#179) --- pkg/app/tag.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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