From 958502bbdc60d8ae32fadfda107b0ac6ce78b6fc Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sat, 29 Jun 2013 13:00:34 -0700 Subject: [PATCH] builder/vmware: populate files properly in artifact [GH-63] --- CHANGELOG.md | 2 ++ builder/vmware/builder.go | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 83459425b..81375fbaf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/builder/vmware/builder.go b/builder/vmware/builder.go index 00616d28f..9dfbc2da7 100644 --- a/builder/vmware/builder.go +++ b/builder/vmware/builder.go @@ -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 }