mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
Merge pull request #6324 from swordqiu/hotfix/qj-hide-host-agent-menu
fix: host agent list use baremetalagents model
This commit is contained in:
@@ -718,7 +718,7 @@ func isHostAgentExists(s *mcclient.ClientSession) (bool, error) {
|
||||
params.Add(jsonutils.NewString("system"), "scope")
|
||||
params.Add(jsonutils.NewInt(1), "limit")
|
||||
params.Add(jsonutils.JSONFalse, "details")
|
||||
agents, err := modules.Baremetalagents.List(s, params)
|
||||
agents, err := modules.Hosts.List(s, params)
|
||||
if err != nil {
|
||||
return false, errors.Wrap(err, "modules.LoadbalancerAgents.List")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user