diff options
author | ytti <saku@ytti.fi> | 2014-10-02 13:17:11 +0300 |
---|---|---|
committer | ytti <saku@ytti.fi> | 2014-10-02 13:17:11 +0300 |
commit | 96ddecf6ad0297f1884b03c9799c4072b49c959f (patch) | |
tree | e370da5fccfa4fe51a5a7ad402cd19d6c616e964 /lib | |
parent | f389555535348970d3c8ac6a0008cf9cdb4d71d0 (diff) | |
parent | 5bc5aa28a205c300e80956a257372bc2a6fcf6a7 (diff) |
Merge pull request #49 from emjemj/master
Fixed some changing output found in specific firmware versions
Diffstat (limited to 'lib')
-rw-r--r-- | lib/oxidized/model/powerconnect.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/oxidized/model/powerconnect.rb b/lib/oxidized/model/powerconnect.rb index 6a743db..a1fe229 100644 --- a/lib/oxidized/model/powerconnect.rb +++ b/lib/oxidized/model/powerconnect.rb @@ -14,11 +14,12 @@ class PowerConnect < Oxidized::Model end cmd 'show version' do |cfg| - comment cfg + cfg = cfg.split("\n").select { |line| not line[/Up\sTime/] } + comment cfg.join("\n") + "\n" end cmd 'show system' do |cfg| - cfg = cfg.split("\n").select { |line| not line[/Up Time/] } + cfg = cfg.split("\n").select { |line| not line[/Up\sTime/] } cfg = cfg[0..-28]<<" " comment cfg.join("\n") end |