Skip to content

Commit

Permalink
Merge pull request #277 from Icinga:fix/task_plugin_wildcard
Browse files Browse the repository at this point in the history
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
  • Loading branch information
LordHepipud authored Feb 7, 2022
2 parents 37e86a2 + 3da41fd commit d747fe2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions doc/31-Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion provider/tasks/Get-IcingaScheduledTask.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function Get-IcingaScheduledTask()
);

foreach ($task in $TaskName) {
if ($task -eq '*') {
if ($task -eq '*' -or $task.Contains('*')) {
continue;
}

Expand Down

0 comments on commit d747fe2

Please sign in to comment.