Skip to content

Commit d747fe2

Browse files
authored
Merge pull request #277 from Icinga:fix/task_plugin_wildcard
Fix: Invoke-IcingaCheckScheduledTask wildcard task names Fixes `Invoke-IcingaCheckScheduledTask` for wildcard task names, which added the unknown package in case wildcards were used for task names
2 parents 37e86a2 + 3da41fd commit d747fe2

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

doc/31-Changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ Released closed milestones can be found on [GitHub](https://github.com/Icinga/ic
1919
* [#262](https://github.com/Icinga/icinga-powershell-plugins/pull/262) Fixes method NULL exception on empty EventLog entries for `Invoke-IcingaCheckEventLog`
2020
* [#271](https://github.com/Icinga/icinga-powershell-plugins/pull/271) Fixes JEA error which detected `ScriptBlocks` in the plugin collection
2121
* [#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
22+
* [#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
2223

2324
## Enhancements
2425

provider/tasks/Get-IcingaScheduledTask.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ function Get-IcingaScheduledTask()
3737
);
3838

3939
foreach ($task in $TaskName) {
40-
if ($task -eq '*') {
40+
if ($task -eq '*' -or $task.Contains('*')) {
4141
continue;
4242
}
4343

0 commit comments

Comments
 (0)