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:
Liao Pingfang 2020-07-02 07:39:40 +08:00 committed by Michal Privoznik
parent ccf627c110
commit 7ea55a481d

View File

@ -19981,7 +19981,7 @@ virDomainThreadSchedParseHelper(xmlNodePtr node,
if (sched->policy != VIR_PROC_POLICY_NONE) {
virReportError(VIR_ERR_XML_DETAIL,
_("%ssched attributes 'vcpus' must not overlap"),
name);
STREQ(name, "vcpus") ? "vcpu" : name);
return -1;
}