mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 11:22:23 +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 (!dom->persistent) {
|
||||
virReportError(VIR_ERR_OPERATION_INVALID, "%s",
|
||||
_("cannot change persistent config of a "
|
||||
"transient domain"));
|
||||
_("transient domains do not have any "
|
||||
"persistent config"));
|
||||
goto cleanup;
|
||||
}
|
||||
if (!(*persistentDef = virDomainObjGetPersistentDef(caps, xmlopt, dom))) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user