diff --git a/doc/31-Changelog.md b/doc/31-Changelog.md index ea9dfaef..43c5fc68 100644 --- a/doc/31-Changelog.md +++ b/doc/31-Changelog.md @@ -19,6 +19,7 @@ Released closed milestones can be found on [GitHub](https://github.com/Icinga/ic * [#262](https://github.com/Icinga/icinga-powershell-plugins/pull/262) Fixes method NULL exception on empty EventLog entries for `Invoke-IcingaCheckEventLog` * [#271](https://github.com/Icinga/icinga-powershell-plugins/pull/271) Fixes JEA error which detected `ScriptBlocks` in the plugin collection * [#272](https://github.com/Icinga/icinga-powershell-plugins/pull/272) Fixes file encoding for `Invoke-IcingaCheckTimeSync` which was not UTF8 before, causing the JEA profile writer to ignore the file +* [#274](https://github.com/Icinga/icinga-powershell-plugins/issues/274) Fixes `Invoke-IcingaCheckScheduledTask` for wildcard task names, which added the unknown package in case wildcards were used for task names ## Enhancements diff --git a/provider/tasks/Get-IcingaScheduledTask.psm1 b/provider/tasks/Get-IcingaScheduledTask.psm1 index 88d0f97a..eb9d6ef0 100644 --- a/provider/tasks/Get-IcingaScheduledTask.psm1 +++ b/provider/tasks/Get-IcingaScheduledTask.psm1 @@ -37,7 +37,7 @@ function Get-IcingaScheduledTask() ); foreach ($task in $TaskName) { - if ($task -eq '*') { + if ($task -eq '*' -or $task.Contains('*')) { continue; }