From 2f9acf848fa615135980ca20c2fbcb446d385fb5 Mon Sep 17 00:00:00 2001 From: Steven Powell Date: Wed, 3 Mar 2021 17:01:41 -0700 Subject: [PATCH] Remove WSLENV check from IsMicrosoftWSL --- pkg/minikube/driver/driver.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/minikube/driver/driver.go b/pkg/minikube/driver/driver.go index 5ca3b4288b3b..2edc1ef742d4 100644 --- a/pkg/minikube/driver/driver.go +++ b/pkg/minikube/driver/driver.go @@ -174,7 +174,7 @@ func NeedsPortForward(name string) bool { // checking for WSL env var based on this https://github.com/microsoft/WSL/issues/423#issuecomment-608237689 // also based on https://github.com/microsoft/vscode/blob/90a39ba0d49d75e9a4d7e62a6121ad946ecebc58/resources/win32/bin/code.sh#L24 func IsMicrosoftWSL() bool { - return os.Getenv("WSL_DISTRO_NAME") != "" || os.Getenv("WSLPATH") != "" || os.Getenv("WSLENV") != "" + return os.Getenv("WSL_DISTRO_NAME") != "" || os.Getenv("WSLPATH") != "" } // HasResourceLimits returns true if driver can set resource limits such as memory size or CPU count.