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>
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;