mirror of
https://github.com/hashicorp/packer.git
synced 2026-09-26 09:44:01 -04:00
builder/amazon/chroot: initial len should be 0 so we don't have empty
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user