fix: running check error when podman is default in wsl

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>
This commit is contained in:
shblue21
2023-01-26 10:56:16 +09:00
parent 8fce9dcde6
commit b28519fd96

View File

@ -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