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

This commit is contained in:
Mitchell Hashimoto 2013-07-02 09:05:17 -07:00
parent 8ece9a60d5
commit f36972f52a
2 changed files with 8 additions and 0 deletions

View File

@ -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:

View File

@ -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
} }