1
0
mirror of https://github.com/rancher/norman.git synced 2025-09-19 09:50:52 +00:00

Index out of range fix in batchMove

This commit is contained in:
Alena Prokharchyk
2018-02-27 17:33:17 -08:00
committed by Darren Shepherd
parent a978cad0e8
commit 65e6d1cc46

View File

@@ -21,7 +21,7 @@ func (b *BatchMove) FromInternal(data map[string]interface{}) {
}
func (b *BatchMove) ToInternal(data map[string]interface{}) {
for i := len(b.moves) - 1; i >= 0; i++ {
for i := len(b.moves) - 1; i >= 0; i-- {
b.moves[i].ToInternal(data)
}
}