Commit b9fb40b8 authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

builder/vmware: populate files properly in artifact [GH-63]

parent b11b2739
...@@ -5,6 +5,8 @@ BUG FIXES: ...@@ -5,6 +5,8 @@ BUG FIXES:
* amazon-ebs: Sleep between checking instance state to avoid * amazon-ebs: Sleep between checking instance state to avoid
RequestLimitExceeded [GH-50] RequestLimitExceeded [GH-50]
* vagrant: Rename VirtualBox ovf to "box.ovf" [GH-64] * vagrant: Rename VirtualBox ovf to "box.ovf" [GH-64]
* vmware: Properly populate files in artifact so that the Vagrant
post-processor works. [GH-63]
## 0.1.1 (June 28, 2013) ## 0.1.1 (June 28, 2013)
......
...@@ -263,7 +263,10 @@ func (b *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packe ...@@ -263,7 +263,10 @@ func (b *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packe
// Compile the artifact list // Compile the artifact list
files := make([]string, 0, 10) files := make([]string, 0, 10)
visit := func(path string, info os.FileInfo, err error) error { visit := func(path string, info os.FileInfo, err error) error {
files = append(files, path) if !info.IsDir() {
files = append(files, path)
}
return err return err
} }
......
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