diff options
author | ytti <saku@ytti.fi> | 2016-02-01 13:13:20 +0200 |
---|---|---|
committer | ytti <saku@ytti.fi> | 2016-02-01 13:13:20 +0200 |
commit | a70afa90707df43408caa1dd3989058ef6dfc910 (patch) | |
tree | 876b5979a7d7ba2a127d046754f48aa36535f566 | |
parent | 324d22e243b127f2055245911276c147f95e9e6b (diff) | |
parent | 82a99e7a06a2f71ef9e08d5000345d54f4691593 (diff) |
Merge pull request #299 from ocadotechnology/fix-ironware-fan-again
Add another fan speed to the list of things to ignore for ironware (HI)
-rw-r--r-- | lib/oxidized/model/ironware.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/oxidized/model/ironware.rb b/lib/oxidized/model/ironware.rb index d4e5e87..f79b977 100644 --- a/lib/oxidized/model/ironware.rb +++ b/lib/oxidized/model/ironware.rb @@ -31,7 +31,7 @@ class IronWare < Oxidized::Model cmd 'show chassis' do |cfg| cfg.encode!("UTF-8", :invalid => :replace) #sometimes ironware returns broken encoding cfg.gsub! /(^((.*)Current temp(.*))$)/, '' #remove unwanted lines current temperature - cfg.gsub! /Speed = [A-Z-]{3,6} \(\d{2}\%\)/, '' #remove unwanted lines Speed Fans + cfg.gsub! /Speed = [A-Z-]{2,6} \(\d{2}\%\)/, '' #remove unwanted lines Speed Fans cfg.gsub! /current speed is [A-Z]{3} \(\d{2}\%\)/, '' cfg.gsub! /\d{2}\.\d deg-C/, 'XX.X deg-C' if cfg.include? "TEMPERATURE" |