summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDenver Abrey <denvera@gmail.com>2016-10-17 22:33:40 +0200
committerDenver Abrey <denvera@gmail.com>2016-10-17 22:33:40 +0200
commit6ed048e1772bf236f34b3ad71f8ae40f992dd034 (patch)
treeeee2e16fda62d713507720d3bfd7d3449facaf18 /lib
parent1015fc4db5bdef72db5763036460037e06d9b7e5 (diff)
Fix blank pfSense configs being saved if regex doesn't match
Diffstat (limited to 'lib')
-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