summaryrefslogtreecommitdiff
path: root/lib/oxidized
diff options
context:
space:
mode:
authorytti <saku@ytti.fi>2017-03-06 16:35:35 +0200
committerGitHub <noreply@github.com>2017-03-06 16:35:35 +0200
commit584a1d919cc650e0731e319f1e399c5e87db301d (patch)
tree2bf0143dba3e8449f361de5a3d7694de0c8404f0 /lib/oxidized
parent46276f70ad5ebd6b1664eac84b8748e908799671 (diff)
parent7750a19a9b2026b9e8f42e903b953a80fced9607 (diff)
Merge pull request #753 from sorano/patch-1
Update regexp to match pfSense 2.3.3 config files
Diffstat (limited to 'lib/oxidized')
-rw-r--r--lib/oxidized/model/pfsense.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/oxidized/model/pfsense.rb b/lib/oxidized/model/pfsense.rb
index c02c0d0..782969e 100644
--- a/lib/oxidized/model/pfsense.rb
+++ b/lib/oxidized/model/pfsense.rb
@@ -7,7 +7,8 @@ class PfSense < Oxidized::Model
end
cmd 'cat /cf/conf/config.xml' do |cfg|
- cfg.gsub! /\s<revision>\s*.*\s*<time>\d*<\/time>\s*.*\s*<\/revision>/, ''
+ cfg.gsub! /\s<revision>\s*<time>\d*<\/time>\s*.*\s*.*\s*<\/revision>/, ''
+ cfg.gsub! /\s<last_rule_upd_time>\d*<\/last_rule_upd_time>/, ''
cfg
end