Skip to content

Commit fa0d8cc

Browse files
authored
Merge pull request #167 from MartyEwings/SUP-3724
(SUP-3724) error handling for access log parsing
2 parents 7b99552 + 644154e commit fa0d8cc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/facter/pe_status_check.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -464,6 +464,9 @@
464464
current = since_lastrun.to_i <= Puppet.settings['runinterval']
465465

466466
match[:status] == '503' and current
467+
rescue StandardError => e
468+
Facter.warn("Error in fact 'pe_status_check.S0039' when querying puppetserver access logs: #{e.message}")
469+
Facter.debug(e.backtrace)
467470
end
468471

469472
{ S0039: !has_503 }

0 commit comments

Comments
 (0)