Stopped and running machines should count as existing
parent
744e389a66
commit
ba9463d933
|
@ -199,6 +199,9 @@ func adjustGuestClock(h hostRunner, t time.Time) error {
|
||||||
// machineExists checks if virtual machine does not exist
|
// machineExists checks if virtual machine does not exist
|
||||||
// if the virtual machine exists, return true
|
// if the virtual machine exists, return true
|
||||||
func machineExists(d string, s state.State, err error) (bool, error) {
|
func machineExists(d string, s state.State, err error) (bool, error) {
|
||||||
|
if s == state.Running || s == state.Stopped {
|
||||||
|
return true, nil
|
||||||
|
}
|
||||||
switch d {
|
switch d {
|
||||||
case driver.HyperKit:
|
case driver.HyperKit:
|
||||||
if s == state.None || (err != nil && err.Error() == "connection is shut down") {
|
if s == state.None || (err != nil && err.Error() == "connection is shut down") {
|
||||||
|
|
Loading…
Reference in New Issue