Created
June 6, 2014 09:12
-
-
Save rickard-von-essen/ef722003439e939c4a7f to your computer and use it in GitHub Desktop.
Packer Patches
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/builder/parallels/common/driver_9.go b/builder/parallels/common/driver_9.go | |
index e29c81b..6ef8787 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This patch resolved the problem I was seeing.