Management framework: minor timeout bugfix

The timeout result wasn't actually stored in requests timing out in the
agent. (So far that's for deployment requests.) Also log the timing out of any
request state, similar to the controller.
This commit is contained in:
Christian Kreibich 2022-06-22 16:26:53 -07:00
parent b2f9e29bae
commit 1af9bba76e

View file

@ -821,11 +821,15 @@ event Management::Node::API::notify_node_hello(node: string)
event Management::Request::request_expired(req: Management::Request::Request)
{
Management::Log::info(fmt("request %s timed out", req$id));
local res = Management::Result($reqid=req$id,
$instance = Management::Agent::get_name(),
$success = F,
$error = "request timed out");
req$results += res;
if ( req?$deploy_state_agent )
{
send_deploy_response(req);