fix host info get sshkey

This commit is contained in:
wanyaoqi
2020-08-04 10:37:16 +08:00
parent 44dabd9af7
commit 93a8856c2a
+1 -1
View File
@@ -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)