Management framework: move role variable from logging into framework-wide config

The role isn't just about logging, it can also act as a general indicator to key
in on in role-specific code elsewhere, such as @if.
This commit is contained in:
Christian Kreibich 2022-05-18 18:47:59 -07:00
parent e78fdc39e4
commit b96a4276eb
5 changed files with 15 additions and 12 deletions

View file

@ -71,7 +71,7 @@ redef record Management::Request::Request += {
};
# Tag our logs correctly
redef Management::Log::role = Management::CONTROLLER;
redef Management::role = Management::CONTROLLER;
global check_instances_ready: function();
global add_instance: function(inst: Management::Instance);