builder/amazon/chroot: initial len should be 0 so we don't have empty

This commit is contained in:
Mitchell Hashimoto 2013-07-30 16:45:49 -07:00
parent 056292b1dc
commit e418727a09
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ func (s *StepCopyFiles) Run(state map[string]interface{}) multistep.StepAction {
mountPath := state["mount_path"].(string)
ui := state["ui"].(packer.Ui)
s.files = make([]string, len(config.CopyFiles))
s.files = make([]string, 0, len(config.CopyFiles))
if len(config.CopyFiles) > 0 {
ui.Say("Copying files from host to chroot...")
for _, path := range config.CopyFiles {