summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorytti <saku@ytti.fi>2016-10-19 09:17:42 -0500
committerGitHub <noreply@github.com>2016-10-19 09:17:42 -0500
commit6733e29b0b042de70ee1ce30d6a33f421e8f2e7c (patch)
treeae4f0cbe956dcf9d0f9caad827b07f82b471f169
parent4da7ba5edef2b72ec1e266c1f8d5b1367ed9203b (diff)
parentd483d4e4be33c2062794d2d6aef7ce16eba223b2 (diff)
Merge pull request #590 from denvera/master
Update regex to match newer pfSense config files
-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