From 7948ca0deb904e3cd34d8ab4b4740718ec44641c Mon Sep 17 00:00:00 2001 From: Saku Ytti Date: Fri, 28 Mar 2014 12:31:59 +0200 Subject: comment expects sting --- lib/oxidized/model/aosw.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/oxidized/model/aosw.rb') diff --git a/lib/oxidized/model/aosw.rb b/lib/oxidized/model/aosw.rb index ac19379..26ee0fa 100644 --- a/lib/oxidized/model/aosw.rb +++ b/lib/oxidized/model/aosw.rb @@ -12,12 +12,12 @@ class AOSW < Oxidized::Model cmd 'show version' do |cfg| cfg = cfg.each_line.select { |line| not line.match /Switch uptime/i } - comment cfg + comment cfg.join end cmd 'show inventory' do |cfg| - cfg = cfg.each_line.take_while { |line| not line.match /Main Board Temp/i } - comment cfg + cfg = cfg.each_line.take_while { |line| not line.match /Output \d Config/i } + comment cfg.join end cmd 'show slots' do |cfg| -- cgit v1.2.1