summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorytti <saku@ytti.fi>2016-10-17 15:44:14 -0500
committerGitHub <noreply@github.com>2016-10-17 15:44:14 -0500
commit4da7ba5edef2b72ec1e266c1f8d5b1367ed9203b (patch)
treeeee2e16fda62d713507720d3bfd7d3449facaf18
parent1015fc4db5bdef72db5763036460037e06d9b7e5 (diff)
parent6ed048e1772bf236f34b3ad71f8ae40f992dd034 (diff)
Merge pull request #589 from denvera/master
Fix blank pfSense configs being saved if regex doesn't match
-rw-r--r--lib/oxidized/model/pfsense.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/oxidized/model/pfsense.rb b/lib/oxidized/model/pfsense.rb
index 9982d72..55e7e85 100644
--- a/lib/oxidized/model/pfsense.rb
+++ b/lib/oxidized/model/pfsense.rb
@@ -8,6 +8,7 @@ class PfSense < Oxidized::Model
cmd 'cat /cf/conf/config.xml' do |cfg|
cfg.gsub! /\s<revision>\s*<time>\d*<\/time>\s*.*\s*.*\s*<\/revision>/, ''
+ cfg
end
cfg :ssh do