From eed1efad2194fb68abd2bc80a5ba1431efad625f Mon Sep 17 00:00:00 2001 From: Lord Hepipud Date: Fri, 7 Feb 2025 17:31:44 +0100 Subject: [PATCH] Fixes return value for "Agent" component installation failure --- lib/core/repository/Install-IcingaComponent.psm1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core/repository/Install-IcingaComponent.psm1 b/lib/core/repository/Install-IcingaComponent.psm1 index eba1a23..57e449a 100644 --- a/lib/core/repository/Install-IcingaComponent.psm1 +++ b/lib/core/repository/Install-IcingaComponent.psm1 @@ -394,7 +394,7 @@ function Install-IcingaComponent() if ($InstallProcess.ExitCode -ne 0) { Write-IcingaConsoleError -Message 'Failed to install component "agent": {0}{1}' -Objects $InstallProcess.Message, $InstallProcess.Error; - return $FALSE; + return; } $Global:Icinga.Protected.Environment.'Icinga Service'.Present = $TRUE;