mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2026-02-03 04:09:29 -05:00
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:
commit
b35f0a77b9
2 changed files with 5 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue