summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authornesteffe <nate.steffen@gmail.com>2017-03-28 11:07:53 -0500
committernesteffe <nate.steffen@gmail.com>2017-03-28 11:07:53 -0500
commitf63cb61550cd2401c32a42d36cf07f5243c788c1 (patch)
tree6ba1782e7e79354f3385a8a735d31c64c08fd277 /lib
parentd218bb2684fb0c619c9dc67b952dda3e0f940a1d (diff)
Remove single line 'Up Time' lines from show system
Diffstat (limited to 'lib')
-rw-r--r--lib/oxidized/model/powerconnect.rb1
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