From 451ea95d70ca2773e6f7813a52627f622498589b Mon Sep 17 00:00:00 2001 From: Christoffer Stokbaek Date: Fri, 26 Aug 2016 16:35:17 +0200 Subject: config pull will not remove its revision time --- lib/oxidized/model/pfsense.rb | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/lib/oxidized/model/pfsense.rb b/lib/oxidized/model/pfsense.rb index 8cb0118..9982d72 100644 --- a/lib/oxidized/model/pfsense.rb +++ b/lib/oxidized/model/pfsense.rb @@ -2,21 +2,12 @@ class PfSense < Oxidized::Model # use other use than 'admin' user, 'admin' user cannot get ssh/exec. See issue #535 - comment '# ' - - #add a comment in the final conf - def add_comment comment - "\n###### #{comment} ######\n" - end - cmd :all do |cfg| cfg.each_line.to_a[1..-2].join end - #show the persistent configuration - pre do - cfg = add_comment 'Configuration' - cfg += cmd 'cat /cf/conf/config.xml' + cmd 'cat /cf/conf/config.xml' do |cfg| + cfg.gsub! /\s\s*