Stopped and running machines should count as existing

pull/6629/head
Sharif Elgamal 2020-02-13 16:15:00 -08:00
parent 744e389a66
commit ba9463d933
1 changed files with 3 additions and 0 deletions

View File

@ -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") {