mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Management framework: fix early return condition for get-id-value
This erroneously used connectedness of instances, not presence of a deployed cluster. Without a deployment, there's no point in trying to retrieve global ID values.
This commit is contained in:
parent
cb3abccfb1
commit
6c3e545306
1 changed files with 3 additions and 3 deletions
|
@ -1174,11 +1174,11 @@ event Management::Controller::API::get_id_value_request(reqid: string, id: strin
|
||||||
|
|
||||||
local res: Management::Result;
|
local res: Management::Result;
|
||||||
|
|
||||||
# Special case: if we have no instances, respond right away.
|
# Special case: if we have no deployed cluster, respond right away.
|
||||||
if ( |g_instances_known| == 0 )
|
if ( |g_instances| == 0 )
|
||||||
{
|
{
|
||||||
Management::Log::info(fmt("tx Management::Controller::API::get_id_value_response %s", reqid));
|
Management::Log::info(fmt("tx Management::Controller::API::get_id_value_response %s", reqid));
|
||||||
res = Management::Result($reqid=reqid, $success=F, $error="no instances connected");
|
res = Management::Result($reqid=reqid, $success=F, $error="no cluster deployed");
|
||||||
Broker::publish(Management::Controller::topic,
|
Broker::publish(Management::Controller::topic,
|
||||||
Management::Controller::API::get_id_value_response,
|
Management::Controller::API::get_id_value_response,
|
||||||
reqid, vector(res));
|
reqid, vector(res));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue