diff --git a/pkg/hostman/hostinfo/hostinfo.go b/pkg/hostman/hostinfo/hostinfo.go index 05a4b8c56a..9180f6b47d 100644 --- a/pkg/hostman/hostinfo/hostinfo.go +++ b/pkg/hostman/hostinfo/hostinfo.go @@ -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]))