From: Peter Krempa <pkrempa(a)redhat.com>
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(a)redhat.com>
---
src/qemu/qemu_agent.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/qemu/qemu_agent.c b/src/qemu/qemu_agent.c
index 879c3a8f41..b22c9d7e85 100644
--- a/src/qemu/qemu_agent.c
+++ b/src/qemu/qemu_agent.c
@@ -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;
--
2.48.1