diff options
author | Denver Abrey <denvera@gmail.com> | 2016-10-17 22:33:40 +0200 |
---|---|---|
committer | Denver Abrey <denvera@gmail.com> | 2016-10-17 22:33:40 +0200 |
commit | 6ed048e1772bf236f34b3ad71f8ae40f992dd034 (patch) | |
tree | eee2e16fda62d713507720d3bfd7d3449facaf18 | |
parent | 1015fc4db5bdef72db5763036460037e06d9b7e5 (diff) |
Fix blank pfSense configs being saved if regex doesn't match
-rw-r--r-- | lib/oxidized/model/pfsense.rb | 1 |
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 |