From 905f2425823ef1d291ef25c8612a6dd1b07885d4 Mon Sep 17 00:00:00 2001 From: Rickard von Essen Date: Fri, 6 Jun 2014 15:59:27 +0200 Subject: [PATCH] Parallels-iso errors while removing floppy drive GH-1226 Status "stopping" should be handled in IsRunning --- builder/parallels/common/driver_9.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/builder/parallels/common/driver_9.go b/builder/parallels/common/driver_9.go index e29c81bc6..6ef8787c2 100644 --- a/builder/parallels/common/driver_9.go +++ b/builder/parallels/common/driver_9.go @@ -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