Skip to content

Commit

Permalink
Update pkg/minikube/cruntime/cri.go
Browse files Browse the repository at this point in the history
Co-authored-by: Steven Powell <[email protected]>
  • Loading branch information
ComradeProgrammer and spowelljr committed Aug 26, 2024
1 parent e950164 commit fa93c5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/minikube/cruntime/cri.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func CrictlVersion(c CommandRunner) (*semver.Version, error) {
return nil, err
}
stdout := rr.Stdout.String()
reg := regexp.MustCompile(`crictl\s*version\s*(v\d*\.\d*.\d*)`)
reg := regexp.MustCompile(`crictl\s*version\s*(v\d+\.\d+.\d+)`)
subMatches := reg.FindStringSubmatch(stdout)
if len(subMatches) < 2 {
return nil, fmt.Errorf("failed to find the crictl version")
Expand Down

0 comments on commit fa93c5a

Please sign in to comment.