post-processor/atlas: fix index out of range panic when artifacts are present
This commit is contained in:
parent
e3c2f01cb8
commit
f9c14aee90
|
@ -178,7 +178,7 @@ func (p *PostProcessor) PostProcess(ui packer.Ui, artifact packer.Artifact) (pac
|
||||||
|
|
||||||
// Modify the archive options to only include the files
|
// Modify the archive options to only include the files
|
||||||
// that are in our file list.
|
// that are in our file list.
|
||||||
include := make([]string, 0, len(fs))
|
include := make([]string, len(fs))
|
||||||
for i, f := range fs {
|
for i, f := range fs {
|
||||||
include[i] = strings.Replace(f, path, "", 1)
|
include[i] = strings.Replace(f, path, "", 1)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue