mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-23 11:52:20 +00:00
conf: Reword error message to be more universal
The error message reported when attempting to change/get persistent configuration of a transient domain suggests that changes are being made. Reword it to suit getter APIs too. Before: $ virsh vcpucount transient-domain --config error: Requested operation is not valid: cannot change persistent config of a transient domain After: $ virsh vcpucount transient-domain --config error: Requested operation is not valid: transient domains do not have any persistent config
This commit is contained in:
parent
446dd66b7c
commit
bcefb50792
@ -2251,8 +2251,8 @@ virDomainLiveConfigHelperMethod(virCapsPtr caps,
|
|||||||
if (*flags & VIR_DOMAIN_AFFECT_CONFIG) {
|
if (*flags & VIR_DOMAIN_AFFECT_CONFIG) {
|
||||||
if (!dom->persistent) {
|
if (!dom->persistent) {
|
||||||
virReportError(VIR_ERR_OPERATION_INVALID, "%s",
|
virReportError(VIR_ERR_OPERATION_INVALID, "%s",
|
||||||
_("cannot change persistent config of a "
|
_("transient domains do not have any "
|
||||||
"transient domain"));
|
"persistent config"));
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
if (!(*persistentDef = virDomainObjGetPersistentDef(caps, xmlopt, dom))) {
|
if (!(*persistentDef = virDomainObjGetPersistentDef(caps, xmlopt, dom))) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user