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

This commit is contained in:
Mitchell Hashimoto 2013-06-29 13:00:34 -07:00
parent 014ed0e507
commit 958502bbdc
2 changed files with 6 additions and 1 deletions

View File

@ -5,6 +5,8 @@ BUG FIXES:
* amazon-ebs: Sleep between checking instance state to avoid
RequestLimitExceeded [GH-50]
* 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)

View File

@ -263,7 +263,10 @@ func (b *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packe
// Compile the artifact list
files := make([]string, 0, 10)
visit := func(path string, info os.FileInfo, err error) error {
files = append(files, path)
if !info.IsDir() {
files = append(files, path)
}
return err
}