summaryrefslogtreecommitdiff
path: root/lib/oxidized
diff options
context:
space:
mode:
Diffstat (limited to 'lib/oxidized')
-rw-r--r--lib/oxidized/model/powerconnect.rb5
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