Skip to content

Commit 9a6c9c0

Browse files
committed
fix: add importVm to detailsRequireZeroIndex and regenerate
1 parent 358fe85 commit 9a6c9c0

2 files changed

Lines changed: 3 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 {

generate/generate.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ var detailsRequireZeroIndex = map[string]bool{
5959
"createAccount": true,
6060
"updateAccount": true,
6161
"updateVirtualMachine": true,
62+
"importVm": true,
6263
}
6364

6465
// parametersRequireIndexing contains map parameters that always need

0 commit comments

Comments
 (0)