Skip to content

Commit 176f1d8

Browse files
committed
fix: serialize details under fixed index 0 in ImportVmParams
1 parent 358fe85 commit 176f1d8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cloudstack/VirtualMachineService.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11516,8 +11516,8 @@ func (p *ImportVmParams) toURLValues() url.Values {
1151611516
}
1151711517
if v, found := p.p["details"]; found {
1151811518
m := v.(map[string]string)
11519-
for i, k := range getSortedKeysFromMap(m) {
11520-
u.Set(fmt.Sprintf("details[%d].%s", i, k), m[k])
11519+
for _, k := range getSortedKeysFromMap(m) {
11520+
u.Set(fmt.Sprintf("details[0].%s", k), m[k])
1152111521
}
1152211522
}
1152311523
if v, found := p.p["diskpath"]; found {

0 commit comments

Comments
 (0)