Skip to content

Commit

Permalink
set host list scope system
Browse files Browse the repository at this point in the history
  • Loading branch information
wanyaoqi committed May 7, 2020
1 parent d39d146 commit 6779db2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/hostman/hostinfo/hostinfo.go
Original file line number Diff line number Diff line change
Expand Up @@ -846,6 +846,7 @@ func (h *SHostInfo) getHostInfo(zoneId string) {
}
params := jsonutils.NewDict()
params.Set("any_mac", jsonutils.NewString(masterMac))
params.Set("scope", jsonutils.NewString("system"))
res, err := modules.Hosts.List(h.GetSession(), params)
if err != nil {
h.onFail(err)
Expand Down

0 comments on commit 6779db2

Please sign in to comment.