Merge pull request #1959 from ryanuber/h-atlas

post-processor/atlas: fix index out of range panic
This commit is contained in:
Mitchell Hashimoto 2015-06-08 21:20:31 -07:00
commit 10e35a5e8c
1 changed files with 1 additions and 1 deletions

View File

@ -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)
}