From ba9463d933bd816cc62fb24aa51417d996b50615 Mon Sep 17 00:00:00 2001 From: Sharif Elgamal Date: Thu, 13 Feb 2020 16:15:00 -0800 Subject: [PATCH] Stopped and running machines should count as existing --- pkg/minikube/machine/fix.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/minikube/machine/fix.go b/pkg/minikube/machine/fix.go index 2a69a37472ca..e495ad850c93 100644 --- a/pkg/minikube/machine/fix.go +++ b/pkg/minikube/machine/fix.go @@ -199,6 +199,9 @@ func adjustGuestClock(h hostRunner, t time.Time) error { // machineExists checks if virtual machine does not exist // if the virtual machine exists, return true func machineExists(d string, s state.State, err error) (bool, error) { + if s == state.Running || s == state.Stopped { + return true, nil + } switch d { case driver.HyperKit: if s == state.None || (err != nil && err.Error() == "connection is shut down") {