Skip to content

Commit

Permalink
update lisDescendent scope params
Browse files Browse the repository at this point in the history
  • Loading branch information
Qiu Jian committed May 18, 2020
1 parent 38c956b commit 6037f15
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/hostman/hostinfo/hostinfo.go
Original file line number Diff line number Diff line change
Expand Up @@ -1073,6 +1073,7 @@ func (h *SHostInfo) getNetworkInfo() {
params := jsonutils.NewDict()
params.Set("details", jsonutils.JSONTrue)
params.Set("limit", jsonutils.NewInt(0))
params.Set("scope", jsonutils.NewString("system"))
res, err := modules.Hostwires.ListDescendent(
h.GetSession(),
h.HostId, params)
Expand Down Expand Up @@ -1228,6 +1229,7 @@ func (h *SHostInfo) getStorageInfo() {
params := jsonutils.NewDict()
params.Set("details", jsonutils.JSONTrue)
params.Set("limit", jsonutils.NewInt(0))
params.Set("scope", jsonutils.NewString("system"))
res, err := modules.Hoststorages.ListDescendent(
h.GetSession(),
h.HostId, params)
Expand Down

0 comments on commit 6037f15

Please sign in to comment.