Skip to content

Commit

Permalink
Merge pull request #44 from bytedance/fix-k8s-version-compare
Browse files Browse the repository at this point in the history
fix: Trim the plus character of minor version
  • Loading branch information
Danny-Wei authored Mar 25, 2024
2 parents 0b3b990 + b4c2b4d commit d71632a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/agent/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ func isSeccompSupported(versionInfo *version.Info) (bool, error) {
return false, err
}

minor, err := strconv.Atoi(versionInfo.Minor)
minor, err := strconv.Atoi(strings.TrimRight(versionInfo.Minor, "+"))
if err != nil {
return false, err
}
Expand Down

0 comments on commit d71632a

Please sign in to comment.