Skip to content

Commit e697b52

Browse files
committed
Fix line indents
1 parent 4109514 commit e697b52

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

provider/eventlog/Get-IcingaEventLog.psm1

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ function Get-IcingaEventLog()
4343
if ($null -eq $After) {
4444
$After = [datetime]::Now.Subtract([TimeSpan]::FromHours(2));
4545
}
46-
46+
4747
if ($null -ne $IncludeUsername -And $IncludeUsername.Count -ne 0) {
4848
$EventLogArguments.Add('UserName', $IncludeUsername);
4949
}
@@ -56,27 +56,27 @@ function Get-IcingaEventLog()
5656
if ($null -ne $Before) {
5757
$EventLogArguments.Add('Before', $Before);
5858
}
59-
59+
6060
try {
6161
$events = Get-EventLog @EventLogArguments -ErrorAction Stop;
6262
} catch {
6363
Exit-IcingaThrowException -InputString $_.Exception -StringPattern 'ParameterBindingValidationException' -ExceptionType 'Input' -ExceptionThrown $IcingaExceptions.Inputs.EventLog;
6464
Exit-IcingaThrowException -InputString $_.Exception -StringPattern 'System.InvalidOperationException' -CustomMessage (-Join $LogName) -ExceptionType 'Input' -ExceptionThrown $IcingaExceptions.Inputs.EventLogLogName;
6565
}
66-
66+
6767
if ($null -ne $IncludeEventId -Or $null -ne $ExcludeEventId -Or $null -ne $ExcludeUsername -Or $null -ne $ExcludeEntryType -Or $null -ne $ExcludeMessage -Or $null -ne $IncludeMessage -Or $null -ne $IncludeSource -Or $null -ne $ExcludeSource) {
6868
$filteredEvents = @();
6969
foreach ($event in $events) {
7070
# Filter out excluded event IDs
7171
if ($ExcludeEventId.Count -ne 0 -And $ExcludeEventId -contains $event.EventId) {
7272
continue;
7373
}
74-
74+
7575
# Filter out excluded events by username
7676
if ($ExcludeUsername.Count -ne 0 -And $ExcludeUsername -contains $event.UserName) {
7777
continue;
7878
}
79-
79+
8080
# Filter out excluded events by entry type (Error, Warning, ...)
8181
if ($ExcludeEntryType.Count -ne 0 -And $ExcludeEntryType -contains $event.EntryType) {
8282
continue;
@@ -86,7 +86,7 @@ function Get-IcingaEventLog()
8686
if ($ExcludeSource.Count -ne 0 -And $ExcludeSource -contains $event.Source) {
8787
continue;
8888
}
89-
89+
9090
[bool]$skip = $FALSE;
9191
foreach ($exMessage in $ExcludeMessage) {
9292
# Filter out excluded event IDs
@@ -95,7 +95,7 @@ function Get-IcingaEventLog()
9595
break;
9696
}
9797
}
98-
98+
9999
if ($skip) {
100100
continue;
101101
}

0 commit comments

Comments
 (0)