Skip to content

Commit be33c7e

Browse files
authored
Merge pull request #6629 from sharifelgamal/stopped
Stopped and running machines should count as existing
2 parents 44692fb + ba9463d commit be33c7e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/minikube/machine/fix.go

+3
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,9 @@ func adjustGuestClock(h hostRunner, t time.Time) error {
199199
// machineExists checks if virtual machine does not exist
200200
// if the virtual machine exists, return true
201201
func machineExists(d string, s state.State, err error) (bool, error) {
202+
if s == state.Running || s == state.Stopped {
203+
return true, nil
204+
}
202205
switch d {
203206
case driver.HyperKit:
204207
if s == state.None || (err != nil && err.Error() == "connection is shut down") {

0 commit comments

Comments
 (0)