mirror of https://gitee.com/openkylin/libvirt.git
phyp: Fix error messages mentioning memory
The messages for currentMemory and memory were swapped.
This commit is contained in:
parent
ccfe9e4809
commit
812a9e5e66
|
@ -3486,15 +3486,15 @@ phypBuildLpar(virConnectPtr conn, virDomainDefPtr def)
|
||||||
|
|
||||||
if (!def->mem.cur_balloon) {
|
if (!def->mem.cur_balloon) {
|
||||||
virReportError(VIR_ERR_XML_ERROR, "%s",
|
virReportError(VIR_ERR_XML_ERROR, "%s",
|
||||||
_("Field <memory> on the domain XML file is missing or has "
|
_("Field <currentMemory> on the domain XML file is "
|
||||||
"invalid value."));
|
"missing or has invalid value"));
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!def->mem.max_balloon) {
|
if (!def->mem.max_balloon) {
|
||||||
virReportError(VIR_ERR_XML_ERROR, "%s",
|
virReportError(VIR_ERR_XML_ERROR, "%s",
|
||||||
_("Field <currentMemory> on the domain XML file is missing or "
|
_("Field <memory> on the domain XML file is missing or "
|
||||||
"has invalid value."));
|
"has invalid value"));
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue