Skip to content

Commit

Permalink
Fix tag command (#179)
Browse files Browse the repository at this point in the history
  • Loading branch information
carabasdaniel authored May 27, 2024
1 parent cca8aae commit bc5b834
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/app/tag.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bc5b834

Please sign in to comment.