Skip to content

Commit

Permalink
fix: parse image version tag during tenant upgrade (#1180)
Browse files Browse the repository at this point in the history
Signed-off-by: Lenin Alevski <alevsk.8772@gmail.com>
  • Loading branch information
Alevsk authored Jun 21, 2022
1 parent b2dccd7 commit 5c837bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controller/cluster/artifacts.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func (c *Controller) fetchTag(path string) (string, error) {
return "", err
}
op := strings.Fields(out.String())
if len(op) != 3 {
if len(op) < 3 {
return "", fmt.Errorf("incorrect output while fetching tag value - %d", len((op)))
}
return op[2], nil
Expand Down

0 comments on commit 5c837bc

Please sign in to comment.