lib/oxidized/model/casa.rb in oxidized-0.24.0 vs lib/oxidized/model/casa.rb in oxidized-0.25.0
- old
+ new
@@ -12,10 +12,10 @@
cfg.gsub! /^(tacacs-server key) \S+/, '\\1 <secret hidden>'
cfg
end
cmd :all do |cfg|
- cfg.each_line.to_a[1..-2].join
+ cfg.cut_both
end
cmd 'show system' do |cfg|
comment cfg.each_line.reject { |line| line.match /^\s+System (Time|Uptime): / }.join
end