diff options
author | Wild Kat <wk@futureinquestion.net> | 2018-03-23 09:24:38 +0100 |
---|---|---|
committer | Wild Kat <wk@futureinquestion.net> | 2018-03-23 09:24:38 +0100 |
commit | 4ba96c79f7eaf5dd9c02c9488d77a5c896c96d8c (patch) | |
tree | fabd6d0c135d29a2d820cef094c58eb182972da4 /lib/oxidized | |
parent | 2d8e40344a05ac16869941c19dbcd6df8ddac80c (diff) |
yield cfg for clarity
Diffstat (limited to 'lib/oxidized')
-rw-r--r-- | lib/oxidized/model/dcnos.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/oxidized/model/dcnos.rb b/lib/oxidized/model/dcnos.rb index c6b2e36..f53bc0d 100644 --- a/lib/oxidized/model/dcnos.rb +++ b/lib/oxidized/model/dcnos.rb @@ -21,7 +21,8 @@ class DCNOS < Oxidized::Model end cmd 'show running-config' do |cfg| - cfg = cfg.each_line.to_a[1..-1] + cfg = cfg.each_line.to_a[1..-1].join + cfg end cfg :telnet do |