diff options
author | ytti <saku@ytti.fi> | 2016-10-17 15:44:14 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-17 15:44:14 -0500 |
commit | 4da7ba5edef2b72ec1e266c1f8d5b1367ed9203b (patch) | |
tree | eee2e16fda62d713507720d3bfd7d3449facaf18 | |
parent | 1015fc4db5bdef72db5763036460037e06d9b7e5 (diff) | |
parent | 6ed048e1772bf236f34b3ad71f8ae40f992dd034 (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.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 |