Commit e0881a13 authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

builder/vmware: wait for shutdown to avoid corrupt disk files [GH-111]

parent 857beb61
...@@ -6,6 +6,11 @@ IMPROVEMENTS: ...@@ -6,6 +6,11 @@ IMPROVEMENTS:
* amazon-ebs: Access key and secret access key default to * amazon-ebs: Access key and secret access key default to
environmental variables. [GH-40] environmental variables. [GH-40]
BUG FIXES:
* vmware: Wait until shut down cleans up properly to avoid corrupt
disk files [GH-111]
## 0.1.3 (July 1, 2013) ## 0.1.3 (July 1, 2013)
FEATURES: FEATURES:
......
...@@ -72,6 +72,9 @@ func (s *stepShutdown) Run(state map[string]interface{}) multistep.StepAction { ...@@ -72,6 +72,9 @@ func (s *stepShutdown) Run(state map[string]interface{}) multistep.StepAction {
} }
} }
log.Println("Giving VMware a few extra seconds to clean up after itself...")
time.Sleep(5 * time.Second)
log.Println("VM shut down.") log.Println("VM shut down.")
return multistep.ActionContinue return multistep.ActionContinue
} }
......
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