From d4ddf6734cf6313c1b42d047271763d84687b0cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Aleksandrovi=C4=8D=20Klimov?= Date: Fri, 2 Jun 2023 17:00:43 +0200 Subject: [PATCH] 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$. --- lib/core/tools/Get-IcingaCheckCommandConfig.psm1 | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/core/tools/Get-IcingaCheckCommandConfig.psm1 b/lib/core/tools/Get-IcingaCheckCommandConfig.psm1 index 4b0e783..2f05688 100644 --- a/lib/core/tools/Get-IcingaCheckCommandConfig.psm1 +++ b/lib/core/tools/Get-IcingaCheckCommandConfig.psm1 @@ -212,6 +212,7 @@ function Get-IcingaCheckCommandConfig() 'object_name' = $check; 'object_type' = 'object'; 'vars' = @{ + 'ifw_api_command' = $check; 'ifw_api_arguments' = @{ }; }; }