builder/virtualbox: "stopping" is still running [GH-30]

This commit is contained in:
Mitchell Hashimoto 2013-06-24 09:32:08 -07:00
parent f0255837d4
commit d7ec646506
1 changed files with 6 additions and 0 deletions

View File

@ -53,6 +53,12 @@ func (d *VBox42Driver) IsRunning(name string) (bool, error) {
if line == `VMState="running"` {
return true, nil
}
// We consider "stopping" to still be running. We wait for it to
// be completely stopped or some other state.
if line == `VMState="stopping"` {
return true, nil
}
}
return false, nil