mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
remote: Cleanup improper VIR_ERR_NO_SUPPORT use
This commit is contained in:
parent
4340b3ba40
commit
d4b53ef6cf
@ -2928,7 +2928,7 @@ static int remoteDomainEventRegister(virConnectPtr conn,
|
|||||||
remoteDriverLock(priv);
|
remoteDriverLock(priv);
|
||||||
|
|
||||||
if (priv->domainEventState->timer < 0) {
|
if (priv->domainEventState->timer < 0) {
|
||||||
remoteError(VIR_ERR_NO_SUPPORT, "%s", _("no event support"));
|
remoteError(VIR_ERR_OPERATION_INVALID, "%s", _("no event support"));
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3277,7 +3277,7 @@ remoteSecretGetValue (virSecretPtr secret, size_t *value_size,
|
|||||||
|
|
||||||
/* internalFlags intentionally do not go over the wire */
|
/* internalFlags intentionally do not go over the wire */
|
||||||
if (internalFlags) {
|
if (internalFlags) {
|
||||||
remoteError(VIR_ERR_NO_SUPPORT, "%s", _("no internalFlags support"));
|
remoteError(VIR_ERR_OPERATION_INVALID, "%s", _("no internalFlags support"));
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3541,7 +3541,7 @@ static int remoteDomainEventRegisterAny(virConnectPtr conn,
|
|||||||
remoteDriverLock(priv);
|
remoteDriverLock(priv);
|
||||||
|
|
||||||
if (priv->domainEventState->timer < 0) {
|
if (priv->domainEventState->timer < 0) {
|
||||||
remoteError(VIR_ERR_NO_SUPPORT, "%s", _("no event support"));
|
remoteError(VIR_ERR_OPERATION_INVALID, "%s", _("no event support"));
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user