Skip to content

Commit

Permalink
Merge pull request #6629 from sharifelgamal/stopped
Browse files Browse the repository at this point in the history
Stopped and running machines should count as existing
  • Loading branch information
medyagh authored Feb 14, 2020
2 parents 44692fb + ba9463d commit be33c7e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/minikube/machine/fix.go
Original file line number Diff line number Diff line change
Expand Up @@ -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") {
Expand Down

0 comments on commit be33c7e

Please sign in to comment.