From f63cb61550cd2401c32a42d36cf07f5243c788c1 Mon Sep 17 00:00:00 2001 From: nesteffe Date: Tue, 28 Mar 2017 11:07:53 -0500 Subject: Remove single line 'Up Time' lines from show system --- lib/oxidized/model/powerconnect.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') 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 -- cgit v1.2.1