Skip to content

Commit

Permalink
fix: running check error when podman is default in wsl
Browse files Browse the repository at this point in the history
If podman is the default wsl distribution, the (default) string is appended and result is assigned false.

[NO NEW TESTS NEEDED]

Fixes #17227

Signed-off-by: shblue21 <jihunkimkw@gmail.com>
  • Loading branch information
shblue21 authored and openshift-cherrypick-robot committed Jan 27, 2023
1 parent e25a4fb commit 92bae97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/machine/wsl/machine.go
Original file line number Diff line number Diff line change
Expand Up @@ -1175,7 +1175,7 @@ func IsWSLFeatureEnabled() bool {
}

func isWSLRunning(dist string) (bool, error) {
cmd := exec.Command("wsl", "-l", "--running")
cmd := exec.Command("wsl", "-l", "--running", "--quiet")
out, err := cmd.StdoutPipe()
if err != nil {
return false, err
Expand Down

0 comments on commit 92bae97

Please sign in to comment.