mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-20 23:00:35 -05:00
Fixes null-value exception on missing background daemons
This commit is contained in:
parent
8af403de55
commit
906d616966
2 changed files with 4 additions and 4 deletions
|
|
@ -13,6 +13,7 @@ Released closed milestones can be found on [GitHub](https://github.com/Icinga/ic
|
|||
|
||||
### Bugfixes
|
||||
|
||||
* [#476](https://github.com/Icinga/icinga-powershell-framework/pull/476) Fixes exception `You cannot call a method on va null-valued expression` during installation in case no background daemon is configured
|
||||
* [#529](https://github.com/Icinga/icinga-powershell-framework/pull/529) Fixes package manifest reader for Icinga for Windows components on Windows 2012 R2 and older
|
||||
* [#523](https://github.com/Icinga/icinga-powershell-framework/pull/523) Fixes errors on encapsulated PowerShell calls for missing Cmdlets `Write-IcingaConsoleError` and `Optimize-IcingaForWindowsMemory`
|
||||
* [#524](https://github.com/Icinga/icinga-powershell-framework/issues/524) Fixes uninstallation process by improving the location handling of PowerShell instances with Icinga IMC or Shell
|
||||
|
|
|
|||
|
|
@ -1,13 +1,12 @@
|
|||
function Get-IcingaBackgroundDaemons()
|
||||
{
|
||||
$Daemons = Get-IcingaPowerShellConfig -Path 'BackgroundDaemon.EnabledDaemons';
|
||||
$Daemons = Get-IcingaPowerShellConfig -Path 'BackgroundDaemon.EnabledDaemons';
|
||||
[hashtable]$Output = @{ };
|
||||
|
||||
if ($null -eq $Daemons) {
|
||||
return $null;
|
||||
return $Output;
|
||||
}
|
||||
|
||||
[hashtable]$Output = @{ };
|
||||
|
||||
foreach ($daemon in $Daemons.PSObject.Properties) {
|
||||
$Arguments = @{ };
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue