From 868cb6741ad902a1cf4ecff67fc38100f948bcee Mon Sep 17 00:00:00 2001 From: KodApa85 Date: Sun, 22 Jul 2018 12:06:01 +0100 Subject: Removed unnecessary/illegal/unsupported escape sequence (#1352) --- lib/oxidized/model/voss.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/oxidized/model/voss.rb') diff --git a/lib/oxidized/model/voss.rb b/lib/oxidized/model/voss.rb index 32958ce..7950386 100644 --- a/lib/oxidized/model/voss.rb +++ b/lib/oxidized/model/voss.rb @@ -14,10 +14,10 @@ class Voss < Oxidized::Model # Get sys-info and remove information that changes such has temperature and power cmd 'show sys-info' do |cfg| cfg.gsub! /(^((.*)SysUpTime(.*))$)/, 'removed SysUpTime' - cfg.gsub! /^((.*)Temperature Info \:(.*\r?\n){4})/, 'removed Temperature Info and 3 more lines' - cfg.gsub! /(^((.*)AmbientTemperature(.*)\:(.*))$)/, 'removed AmbientTemperature' - cfg.gsub! /(^((.*)Temperature(.*)\:(.*))$)/, 'removed Temperature' - cfg.gsub! /(^((.*)Total Power Usage(.*)\:(.*))$)/, 'removed Total Power Usage' + cfg.gsub! /^((.*)Temperature Info :(.*\r?\n){4})/, 'removed Temperature Info and 3 more lines' + cfg.gsub! /(^((.*)AmbientTemperature(.*):(.*))$)/, 'removed AmbientTemperature' + cfg.gsub! /(^((.*)Temperature(.*):(.*))$)/, 'removed Temperature' + cfg.gsub! /(^((.*)Total Power Usage(.*):(.*))$)/, 'removed Total Power Usage' comment "#{cfg}\n" end -- cgit v1.2.1