Commit 10e35a5e authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

Merge pull request #1959 from ryanuber/h-atlas

post-processor/atlas: fix index out of range panic
parents a8cd2a22 f9c14aee
......@@ -169,7 +169,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)
}
......
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