From 59236ee0ec8d25982c9ba92af733ecb918437b91 Mon Sep 17 00:00:00 2001 From: Lord Hepipud Date: Wed, 25 Sep 2019 20:02:42 +0200 Subject: [PATCH] Added exit statement for command execution --- lib/core/tools/Get-IcingaCheckCommandConfig.psm1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core/tools/Get-IcingaCheckCommandConfig.psm1 b/lib/core/tools/Get-IcingaCheckCommandConfig.psm1 index 6d1afdf..bbfedcd 100644 --- a/lib/core/tools/Get-IcingaCheckCommandConfig.psm1 +++ b/lib/core/tools/Get-IcingaCheckCommandConfig.psm1 @@ -150,7 +150,7 @@ function Get-IcingaCheckCommandConfig() 'arguments' = @{ # Set the Command handling for every check command '-C' = @{ - 'value' = [string]::Format('Use-Icinga; {0}', $Data.Name); + 'value' = [string]::Format('Use-Icinga; exit {0}', $Data.Name); 'order' = '0'; } }