Merge pull request #6797 from wanyaoqi/bugfix/wyq/fix-host-list-filter

fix host list servers filter
This commit is contained in:
Zexi Li
2020-06-10 17:05:29 +08:00
committed by GitHub
+1 -1
View File
@@ -140,7 +140,7 @@ func (m *SGuestManager) VerifyExistingGuests(pendingDelete bool) {
keys[index] = k
index++
}
params.Set("filter.1", jsonutils.NewString(fmt.Sprintf("id.in(%s)", strings.Join(keys, ","))))
params.Set("filter.0", jsonutils.NewString(fmt.Sprintf("id.in(%s)", strings.Join(keys, ","))))
}
res, err := modules.Servers.List(hostutils.GetComputeSession(context.Background()), params)
if err != nil {