mirror of
https://github.com/containers/podman.git
synced 2025-06-26 04:46:57 +08:00
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:
@ -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
|
||||
|
Reference in New Issue
Block a user