Get-IcingaCheckCommandConfig: set vars.ifw_api_command in all commands

Useful in case someone renames the commands in Director.

Otherwise, in this case, all commands would be broken with ifw-api as vars.ifw_api_command defaults to $command.name$.
This commit is contained in:
Alexander Aleksandrovič Klimov 2023-06-02 17:00:43 +02:00 committed by Alexander A. Klimov
parent 351f7586db
commit d4ddf6734c

View file

@ -212,6 +212,7 @@ function Get-IcingaCheckCommandConfig()
'object_name' = $check;
'object_type' = 'object';
'vars' = @{
'ifw_api_command' = $check;
'ifw_api_arguments' = @{ };
};
}