mirror of
https://github.com/helmfile/helmfile.git
synced 2026-10-19 00:27:15 +02:00
Fix getArray function copy error
Signed-off-by: xiaomudk <xiaomudk@gmail.com>
This commit is contained in:
@@ -103,7 +103,7 @@ func (a indexedKeyArg) getArray(m map[string]interface{}) []interface{} {
|
||||
case []interface{}:
|
||||
if len(t) <= a.index {
|
||||
t2 := make([]interface{}, a.index+1)
|
||||
copy(t, t2)
|
||||
copy(t2, t)
|
||||
t = t2
|
||||
}
|
||||
return t
|
||||
|
||||
Reference in New Issue
Block a user