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:
parent
305e91dc21
commit
54312df15b
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user