lib/oxidized/model/saos.rb in oxidized-0.24.0 vs lib/oxidized/model/saos.rb in oxidized-0.25.0
- old
+ new
@@ -3,10 +3,10 @@
# used for 6.x devices
comment '! '
cmd :all do |cfg|
- cfg.each_line.to_a[1..-2].join
+ cfg.cut_both
end
cmd 'configuration show' do |cfg|
cfg.gsub! /^! Created: [^\n]*\n/, ''
cfg.gsub! /^! On terminal: [^\n]*\n/, ''