diff --git a/lib/provider/eventlog/Get-IcingaEventLog.psm1 b/lib/provider/eventlog/Get-IcingaEventLog.psm1 index 5a284d5..d4fb878 100644 --- a/lib/provider/eventlog/Get-IcingaEventLog.psm1 +++ b/lib/provider/eventlog/Get-IcingaEventLog.psm1 @@ -54,7 +54,7 @@ function Get-IcingaEventLog() } try { - $events = Get-EventLog @EventLogArguments; + $events = Get-EventLog @EventLogArguments; } catch { Exit-IcingaThrowException -InputString $_.Exception -StringPattern 'ParameterBindingValidationException' -ExceptionType 'Input' -ExceptionThrown $IcingaExceptions.Inputs.EventLog; Exit-IcingaThrowException -InputString $_.Exception -StringPattern 'System.InvalidOperationException' -CustomMessage (-Join $LogName) -ExceptionType 'Input' -ExceptionThrown $IcingaExceptions.Inputs.EventLogLogName;