mirror of
https://github.com/hashicorp/packer.git
synced 2026-05-28 04:35:38 -04:00
fix: fix slice init length
This commit is contained in:
parent
9076c7b24a
commit
6e417bb883
1 changed files with 1 additions and 1 deletions
|
|
@ -873,7 +873,7 @@ func (c *Core) renderVarsRecursively() (*interpolate.Context, error) {
|
|||
Key string
|
||||
Value string
|
||||
}
|
||||
sortedMap := make([]keyValue, len(repeatMap))
|
||||
sortedMap := make([]keyValue, 0, len(repeatMap))
|
||||
for _, k := range allKeys {
|
||||
sortedMap = append(sortedMap, keyValue{k, repeatMap[k]})
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue