Skip to content

Commit

Permalink
Merge pull request #3090 from olofvndrhr/master
Browse files Browse the repository at this point in the history
TrueNAS model: update ignore pattern for SCALE
  • Loading branch information
robertcheramy authored Mar 5, 2024
2 parents 1499c4f + 37a3552 commit 40b7f16
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/oxidized/model/truenas.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ class TrueNAS < Oxidized::Model
cmd('sqlite3 "file:///data/freenas-v1.db?mode=ro&immutable=1" .dump') do |cfg|
cfg.lines.reject do |line|
line.match(/^INSERT INTO storage_replication /) ||
line.match(/^INSERT INTO system_alert /)
line.match(/^INSERT INTO system_alert /) || # ignore system alerts in db
line.match(/^INSERT INTO sqlite_sequence VALUES\('system_alert',/) # ignore system alerts in db
end.join
end

Expand Down

0 comments on commit 40b7f16

Please sign in to comment.