summaryrefslogtreecommitdiff
path: root/lib/oxidized/model
diff options
context:
space:
mode:
authorSaku Ytti <saku@ytti.fi>2013-04-26 19:35:43 +0300
committerSaku Ytti <saku@ytti.fi>2013-04-26 19:35:43 +0300
commit5fca52c86b50dd9754546902530530b9c0f6216b (patch)
treef0ece477d6518c2ef6ce9a38b77cb53d1f333060 /lib/oxidized/model
parent3dc52f34c386409e65465aaa0878ac5db812570c (diff)
1.9/2.0 compatibility fix + syslogd cleanup
Diffstat (limited to 'lib/oxidized/model')
-rw-r--r--lib/oxidized/model/junos.rb2
1 files changed, 1 insertions, 1 deletions
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