From f9c14aee90d9df48e9c4e7ce5c221ce4af3747ff Mon Sep 17 00:00:00 2001 From: Ryan Uber Date: Mon, 2 Mar 2015 11:59:18 -0800 Subject: [PATCH] post-processor/atlas: fix index out of range panic when artifacts are present --- post-processor/atlas/post-processor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/post-processor/atlas/post-processor.go b/post-processor/atlas/post-processor.go index f66eab9ab..504388d81 100644 --- a/post-processor/atlas/post-processor.go +++ b/post-processor/atlas/post-processor.go @@ -178,7 +178,7 @@ func (p *PostProcessor) PostProcess(ui packer.Ui, artifact packer.Artifact) (pac // Modify the archive options to only include the files // that are in our file list. - include := make([]string, 0, len(fs)) + include := make([]string, len(fs)) for i, f := range fs { include[i] = strings.Replace(f, path, "", 1) }