mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-21 06:09:39 +08:00
fix(host): detect qemu caps
ingnore pmemclean output on qemu version 2.12.1 Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
This commit is contained in:
@@ -917,7 +917,7 @@ func (h *SHostInfo) detectQemuCapabilities(version string) error {
|
||||
log.Errorf("failed start qemu caps cmdline: %s", qmpCmds)
|
||||
}
|
||||
segs := bytes.Split(out, []byte{'\n'})
|
||||
if len(segs) != 6 {
|
||||
if len(segs) < 6 {
|
||||
return errors.Errorf("unexpect qmp res %s", out)
|
||||
}
|
||||
res, err := jsonutils.Parse(bytes.TrimSpace(segs[2]))
|
||||
|
||||
Reference in New Issue
Block a user