1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-03-30 18:50:18 +03:00

qemuAgentCommandFull: Use VIR_ERR_AGENT_COMMAND_TIMEOUT when agent disappears

When the agent disappears after geting a proper command we ought to
report the same error code as if we timed out as it's uncertain whether
the guest agent did anything.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
Peter Krempa 2025-03-20 16:07:32 +01:00
parent 305e91dc21
commit 54312df15b

View File

@ -1066,7 +1066,7 @@ qemuAgentCommandFull(qemuAgent *agent,
virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
_("Missing agent reply object"));
} else {
virReportError(VIR_ERR_AGENT_UNRESPONSIVE, "%s",
virReportError(VIR_ERR_AGENT_COMMAND_TIMEOUT, "%s",
_("Guest agent disappeared while executing command"));
}
ret = -1;