From 2e9dbb72b01005b6c94c0cb3a3e48f04335d3e9a Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Wed, 18 Sep 2013 14:43:42 -0700 Subject: [PATCH] post-processor/vagrant: fix slice copy to actually work for override [GH-426] --- CHANGELOG.md | 1 + post-processor/vagrant/post-processor.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7ad2b1fae..ddf709bba 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,7 @@ BUG FIXES: * builder/amazon/instance: Make AccessKey/SecretKey available to bundle command even when they come from the environment. [GH-434] * builder/virtualbox: F1-F12 and delete scancodes now work. [GH-425] +* post-processor/vagrant: Override configurations properly work. [GH-426] * provisioner/puppet-masterless: Fix failure case when both facter vars are used and prevent_sudo. [GH-415] diff --git a/post-processor/vagrant/post-processor.go b/post-processor/vagrant/post-processor.go index 13e39a763..ecfae80de 100644 --- a/post-processor/vagrant/post-processor.go +++ b/post-processor/vagrant/post-processor.go @@ -77,7 +77,7 @@ func (p *PostProcessor) Configure(raws ...interface{}) error { } // Create the proper list of configurations - ppConfigs := make([]interface{}, 0, len(p.rawConfigs)+1) + ppConfigs := make([]interface{}, len(p.rawConfigs), len(p.rawConfigs)+1) copy(ppConfigs, p.rawConfigs) ppConfigs = append(ppConfigs, raw)