summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaku Ytti <saku@ytti.fi>2014-03-28 12:31:59 +0200
committerSaku Ytti <saku@ytti.fi>2014-03-28 12:31:59 +0200
commit7948ca0deb904e3cd34d8ab4b4740718ec44641c (patch)
treecf4a95073be5304b1e9a7764bc6e9c3e481e87c2
parentd436728663ecd64ab3a7f6da467ab2edbf1a091d (diff)
comment expects sting
-rw-r--r--lib/oxidized/model/aosw.rb6
1 files changed, 3 insertions, 3 deletions
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|