zeekygen: Disable zeek_init() handlers causing error output

These modules have zeek_init() handlers with actual logic that has side-effects
and error outputs. Just disable them during zeekygen runs.
This commit is contained in:
Arne Welzel 2023-10-11 12:31:58 +02:00
parent 6fd68bc607
commit 6f3e3a10e6

View file

@ -21,7 +21,14 @@
@load ./example.zeek
event zeek_init()
event zeek_init() &priority=1000
{
# Disable events in modules that use zeek_init() to do stuff and may
# fail when run under zeekygen. For the purpose of zeekygen, we could
# probably disable all modules, too.
disable_module_events("Control");
disable_module_events("Management::Agent::Runtime");
disable_module_events("Management::Controller::Runtime");
disable_module_events("Management::Node");
terminate();
}