mirror of https://gitee.com/openkylin/libvirt.git
domain_conf: Replace the name string with 'vcpu' if it is 'vcpus'
If the name is 'vcpus', we will get 'vcpussched' instead of 'vcpusched' in the error message as following: ... 19155 : vcpussched attributes 'vcpus' must not overlap So we use 'vcpu' to replace 'vcpus'. Signed-off-by: Liao Pingfang <liao.pingfang@zte.com.cn> Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
ccf627c110
commit
7ea55a481d
|
@ -19981,7 +19981,7 @@ virDomainThreadSchedParseHelper(xmlNodePtr node,
|
||||||
if (sched->policy != VIR_PROC_POLICY_NONE) {
|
if (sched->policy != VIR_PROC_POLICY_NONE) {
|
||||||
virReportError(VIR_ERR_XML_DETAIL,
|
virReportError(VIR_ERR_XML_DETAIL,
|
||||||
_("%ssched attributes 'vcpus' must not overlap"),
|
_("%ssched attributes 'vcpus' must not overlap"),
|
||||||
name);
|
STREQ(name, "vcpus") ? "vcpu" : name);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue