summaryrefslogtreecommitdiff
path: root/lib/oxidized
diff options
context:
space:
mode:
authorDenver Abrey <denvera@gmail.com>2016-10-19 01:12:48 +0200
committerDenver Abrey <denvera@gmail.com>2016-10-19 01:12:48 +0200
commitd483d4e4be33c2062794d2d6aef7ce16eba223b2 (patch)
treeae4f0cbe956dcf9d0f9caad827b07f82b471f169 /lib/oxidized
parent4da7ba5edef2b72ec1e266c1f8d5b1367ed9203b (diff)
Update regex to match newer pfSense config files
Diffstat (limited to 'lib/oxidized')
-rw-r--r--lib/oxidized/model/pfsense.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/oxidized/model/pfsense.rb b/lib/oxidized/model/pfsense.rb
index 55e7e85..c02c0d0 100644
--- a/lib/oxidized/model/pfsense.rb
+++ b/lib/oxidized/model/pfsense.rb
@@ -7,7 +7,7 @@ class PfSense < Oxidized::Model
end
cmd 'cat /cf/conf/config.xml' do |cfg|
- cfg.gsub! /\s<revision>\s*<time>\d*<\/time>\s*.*\s*.*\s*<\/revision>/, ''
+ cfg.gsub! /\s<revision>\s*.*\s*<time>\d*<\/time>\s*.*\s*<\/revision>/, ''
cfg
end