Management framework: enable stdout/stderr reporting

This uses the new frameworks/management/supervisor functionality to maintain
stdout/stderr files, and hooks output context into set_configuration error
results.
This commit is contained in:
Christian Kreibich 2022-05-30 18:51:15 -07:00
parent 24a495da42
commit f10b94de39
5 changed files with 34 additions and 17 deletions

View file

@ -363,11 +363,15 @@ event Management::Agent::API::set_configuration_response(reqid: string, results:
if ( Management::Request::is_null(req) )
return;
# XXX the usual "any" handling needs to happen here if data is filled in
# Add this agent's results to the overall response
for ( i in results )
{
# The usual "any" treatment to keep access predictable
if ( results[i]?$data )
results[i]$data = results[i]$data as Management::NodeOutputs;
req$results[|req$results|] = results[i];
}
# Mark this request as done by removing it from the table of pending
# ones. The following if-check should always be true.