Merge pull request #787 from Icinga:fix/return_value_on_agent_install_failure

Fix: Return value for "Agent" component installation failure

Fixes the return value in case the `Agent` component could not be installed from `$FALSE` to `null`
This commit is contained in:
Lord Hepipud 2025-02-07 17:33:59 +01:00 committed by GitHub
commit b35f0a77b9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 1 deletions

View file

@ -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)

View file

@ -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;