post-processor/atlas: fix index out of range panic when artifacts are present

This commit is contained in:
Ryan Uber 2015-03-02 11:59:18 -08:00
parent e3c2f01cb8
commit f9c14aee90
1 changed files with 1 additions and 1 deletions

View File

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