Commit 905f2425 authored by Rickard von Essen's avatar Rickard von Essen

Parallels-iso errors while removing floppy drive GH-1226

Status "stopping" should be handled in IsRunning
parent 1dcaf171
......@@ -79,6 +79,8 @@ func (d *Parallels9Driver) IsRunning(name string) (bool, error) {
return false, err
}
log.Printf("Checking VM state: %s\n", strings.TrimSpace(stdout.String()))
for _, line := range strings.Split(stdout.String(), "\n") {
if line == "running" {
return true, nil
......@@ -90,6 +92,9 @@ func (d *Parallels9Driver) IsRunning(name string) (bool, error) {
if line == "paused" {
return true, nil
}
if line == "stopping" {
return true, nil
}
}
return false, nil
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment