summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorsorano <sorano@users.noreply.github.com>2017-03-06 15:22:17 +0100
committerGitHub <noreply@github.com>2017-03-06 15:22:17 +0100
commit7750a19a9b2026b9e8f42e903b953a80fced9607 (patch)
tree2bf0143dba3e8449f361de5a3d7694de0c8404f0 /lib
parent46276f70ad5ebd6b1664eac84b8748e908799671 (diff)
Update regexp to match pfSense 2.3.3 config files
Fix regexp for pfSense (2.3.3-RELEASE) to remove revision time in config pull. Also remove snort last_rule_upd_time in config pull.
Diffstat (limited to 'lib')
-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