mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Management framework: also use send_set_configuration_response_error elsewhere
This commit is contained in:
parent
ccf3c24e23
commit
9b4841912c
1 changed files with 3 additions and 7 deletions
|
@ -552,16 +552,12 @@ event Management::Controller::API::set_configuration_request(reqid: string, conf
|
||||||
# At the moment there can only be one pending request.
|
# At the moment there can only be one pending request.
|
||||||
if ( g_config_reqid_pending != "" )
|
if ( g_config_reqid_pending != "" )
|
||||||
{
|
{
|
||||||
res = Management::Result($reqid=reqid);
|
send_set_configuration_response_error(req,
|
||||||
res$success = F;
|
fmt("request %s still pending", g_config_reqid_pending));
|
||||||
res$error = fmt("request %s still pending", g_config_reqid_pending);
|
|
||||||
req$results += res;
|
|
||||||
|
|
||||||
|
Management::Request::finish(req$id);
|
||||||
Management::Log::info(fmt("tx Management::Controller::API::set_configuration_response %s",
|
Management::Log::info(fmt("tx Management::Controller::API::set_configuration_response %s",
|
||||||
Management::Request::to_string(req)));
|
Management::Request::to_string(req)));
|
||||||
Broker::publish(Management::Controller::topic,
|
|
||||||
Management::Controller::API::set_configuration_response, req$id, req$results);
|
|
||||||
Management::Request::finish(req$id);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue