fix(host): host sysinfo metadata double quota (#18239)

This commit is contained in:
wanyaoqi
2023-10-09 18:36:32 +08:00
committed by GitHub
parent ad31e95899
commit 9718572053
+2 -1
View File
@@ -1444,7 +1444,8 @@ func (h *SHostInfo) updateOrCreateHost(hostId string) (*api.HostDetails, error)
meta, _ := jsonutils.Marshal(h.getSysInfo()).GetMap()
input.Metadata = map[string]string{}
for k, v := range meta {
input.Metadata[k] = v.String()
val, _ := v.GetString()
input.Metadata[k] = val
}
input.Version = version.GetShortString()