From 93a8856c2a0119aa8120b5f121e422ae8c200eb8 Mon Sep 17 00:00:00 2001 From: wanyaoqi Date: Tue, 4 Aug 2020 10:34:30 +0800 Subject: [PATCH] fix host info get sshkey --- pkg/hostman/hostinfo/hostinfo.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/hostman/hostinfo/hostinfo.go b/pkg/hostman/hostinfo/hostinfo.go index 7edf13d411..0b9f293b9e 100644 --- a/pkg/hostman/hostinfo/hostinfo.go +++ b/pkg/hostman/hostinfo/hostinfo.go @@ -1383,7 +1383,7 @@ func (h *SHostInfo) deployAdminAuthorizedKeys() { } query := jsonutils.NewDict() - query.Add(jsonutils.NewString("system"), "scope") + query.Set("admin", jsonutils.JSONTrue) ret, err := modules.Sshkeypairs.List(h.GetSession(), query) if err != nil { onErr("Get admin sshkey: %v", err)