append will resize

This commit is contained in:
Matthew Hooker 2017-01-17 17:21:14 -08:00
parent 480398c3d2
commit 4e6a44f5f1
No known key found for this signature in database
GPG Key ID: 7B5F933D9CE8C6A1
1 changed files with 1 additions and 1 deletions

View File

@ -229,7 +229,7 @@ func (p *Provisioner) Provision(ui packer.Ui, comm packer.Communicator) error {
}
// Build our variables up by adding in the build name and builder type
envVars := make([]string, len(p.config.Vars)+3)
envVars := make([]string, len(p.config.Vars)+2)
envVars[0] = fmt.Sprintf("PACKER_BUILD_NAME='%s'", p.config.PackerBuildName)
envVars[1] = fmt.Sprintf("PACKER_BUILDER_TYPE='%s'", p.config.PackerBuilderType)