Skip to content

Commit

Permalink
post-processor/vagrant: fix slice copy to actually work for override
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchellh committed Sep 18, 2013
1 parent 981f4fc commit cb8fa10
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand Down
2 changes: 1 addition & 1 deletion post-processor/vagrant/post-processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit cb8fa10

Please sign in to comment.