builder/virtualbox: paused is still running

This commit is contained in:
Mitchell Hashimoto 2013-07-09 12:39:28 -07:00
parent dbad270d27
commit 2ad30e1ea1
1 changed files with 6 additions and 0 deletions

View File

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