Skip to content

Commit

Permalink
CR change
Browse files Browse the repository at this point in the history
  • Loading branch information
vapopov committed Sep 5, 2024
1 parent 004d5ea commit eee6cff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api/types/autoupdate/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ func ValidateAutoUpdateVersion(v *autoupdate.AutoUpdateVersion) error {

if v.Spec.ToolsVersion == "" {
return trace.BadParameter("ToolsVersion is unset")
} else if _, err := semver.NewVersion(v.Spec.ToolsVersion); err != nil {
}
if _, err := semver.NewVersion(v.Spec.ToolsVersion); err != nil {
return trace.BadParameter("ToolsVersion is not a valid semantic version")
}

Expand Down

0 comments on commit eee6cff

Please sign in to comment.