summaryrefslogtreecommitdiff
path: root/lib/oxidized
diff options
context:
space:
mode:
authorytti <saku@ytti.fi>2017-03-28 19:58:36 +0300
committerGitHub <noreply@github.com>2017-03-28 19:58:36 +0300
commit1148b88b9088e98da579e63fc4fae8b7b2894e9f (patch)
tree6ba1782e7e79354f3385a8a735d31c64c08fd277 /lib/oxidized
parentd218bb2684fb0c619c9dc67b952dda3e0f940a1d (diff)
parentf63cb61550cd2401c32a42d36cf07f5243c788c1 (diff)
Merge pull request #786 from nesteffe/master
Remove single line 'Up Time' lines from show system
Diffstat (limited to 'lib/oxidized')
-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