Fixes service exclude filter

This commit is contained in:
Lord Hepipud 2023-01-14 10:43:05 +01:00
parent d80ea57bf8
commit 891be452c5
2 changed files with 10 additions and 2 deletions

View file

@ -7,6 +7,14 @@ documentation before upgrading to a new release.
Released closed milestones can be found on [GitHub](https://github.com/Icinga/icinga-powershell-framework/milestones?state=closed).
## 1.11.0 (2023-05-16)
[Issues and PRs](https://github.com/Icinga/icinga-powershell-framework/milestone/26)
### Bugfixes
* [#603](https://github.com/Icinga/icinga-powershell-framework/issues/603) Fixed service filter to handle exclude with wildcards instead of requiring the full service name (*not* applying to the display name)
## 1.10.1 (2022-12-20)
[Issue and PRs](https://github.com/Icinga/icinga-powershell-framework/milestone/27?closed=1)
@ -16,7 +24,7 @@ Released closed milestones can be found on [GitHub](https://github.com/Icinga/ic
* [#578](https://github.com/Icinga/icinga-powershell-framework/issues/578) Fixes installation and uninstallation commands changing PowerShell location even when not necessary
* [#582](https://github.com/Icinga/icinga-powershell-framework/issues/582) Fixes background service registration caused by migration task for v1.10.0 being executed even when no services were defined before
* [#588](https://github.com/Icinga/icinga-powershell-framework/issues/588) Fixes threshold values causing an error because of too aggressive regex expression
* [#599](https://github.com/Icinga/icinga-powershell-plugins/issues/599) Fixes plugin argument parser to proceed with real argument names and possible provided aliases
* [#599](https://github.com/Icinga/icinga-powershell-framework/issues/599) Fixes plugin argument parser to proceed with real argument names and possible provided aliases
## 1.10.0 (2022-08-30)

View file

@ -37,7 +37,7 @@ function Get-IcingaServices()
[int]$StartModeId = 5;
[string]$StartMode = 'Unknown';
if ($Exclude -contains $service.ServiceName) {
if ((Test-IcingaArrayFilter -InputObject $Service.ServiceName -Exclude $Exclude) -eq $FALSE) {
continue;
}