diff options
author | nesteffe <nate.steffen@gmail.com> | 2017-03-28 11:07:53 -0500 |
---|---|---|
committer | nesteffe <nate.steffen@gmail.com> | 2017-03-28 11:07:53 -0500 |
commit | f63cb61550cd2401c32a42d36cf07f5243c788c1 (patch) | |
tree | 6ba1782e7e79354f3385a8a735d31c64c08fd277 /lib | |
parent | d218bb2684fb0c619c9dc67b952dda3e0f940a1d (diff) |
Remove single line 'Up Time' lines from show system
Diffstat (limited to 'lib')
-rw-r--r-- | lib/oxidized/model/powerconnect.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/oxidized/model/powerconnect.rb b/lib/oxidized/model/powerconnect.rb index ac36c26..618f05a 100644 --- a/lib/oxidized/model/powerconnect.rb +++ b/lib/oxidized/model/powerconnect.rb @@ -67,6 +67,7 @@ class PowerConnect < Oxidized::Model end out << line.strip end + out = out.select { |line| not line[/Up\sTime/] } out = comment out.join "\n" out << "\n" end |