From eed1efad2194fb68abd2bc80a5ba1431efad625f Mon Sep 17 00:00:00 2001 From: Lord Hepipud Date: Fri, 7 Feb 2025 17:31:44 +0100 Subject: [PATCH 1/2] 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; From 6b61ab15a933fceb0aac55f788235001c7071038 Mon Sep 17 00:00:00 2001 From: Lord Hepipud Date: Fri, 7 Feb 2025 17:33:30 +0100 Subject: [PATCH 2/2] Updates changelog --- doc/100-General/10-Changelog.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doc/100-General/10-Changelog.md b/doc/100-General/10-Changelog.md index a112b50..553080f 100644 --- a/doc/100-General/10-Changelog.md +++ b/doc/100-General/10-Changelog.md @@ -11,6 +11,10 @@ Released closed milestones can be found on [GitHub](https://github.com/Icinga/ic [Issues and PRs](https://github.com/Icinga/icinga-powershell-framework/milestone/38) +### Bugfixes + +* [#787](https://github.com/Icinga/icinga-powershell-framework/pull/787) Fixes the return value in case the `Agent` component could not be installed from `$FALSE` to `null` + ## 1.13.2 (2025-02-03) [Issues and PRs](https://github.com/Icinga/icinga-powershell-framework/milestone/40)