From 5fca52c86b50dd9754546902530530b9c0f6216b Mon Sep 17 00:00:00 2001 From: Saku Ytti Date: Fri, 26 Apr 2013 19:35:43 +0300 Subject: 1.9/2.0 compatibility fix + syslogd cleanup --- lib/oxidized/model/junos.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/oxidized/model') diff --git a/lib/oxidized/model/junos.rb b/lib/oxidized/model/junos.rb index 72f5275..a7080e1 100644 --- a/lib/oxidized/model/junos.rb +++ b/lib/oxidized/model/junos.rb @@ -8,7 +8,7 @@ class JunOS < Oxidized::Model cmd :all do |cfg| # we don't need screen-scraping in ssh due to exec - cfg = cfg.lines[1..-2].join if telnet + cfg = cfg.lines.to_a[1..-2].join if telnet cfg end -- cgit v1.2.1