summaryrefslogtreecommitdiff
path: root/lib/oxidized/model
diff options
context:
space:
mode:
authorroot <florian.doublet@hotmail.fr>2015-06-17 12:18:37 +0200
committerroot <florian.doublet@hotmail.fr>2015-06-17 12:21:40 +0200
commit59e87d0e1ebb477735b9c63f54c6ae5436cfd334 (patch)
treeb2fc44e8fe72273d36b6386f8e2556e989d2b0e2 /lib/oxidized/model
parent606d928bba675f05383bbae708650670dff3701d (diff)
fix regexp error with ruby 2.1
Diffstat (limited to 'lib/oxidized/model')
-rw-r--r--lib/oxidized/model/ironware.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/oxidized/model/ironware.rb b/lib/oxidized/model/ironware.rb
index 1ec8b80..83af5a1 100644
--- a/lib/oxidized/model/ironware.rb
+++ b/lib/oxidized/model/ironware.rb
@@ -32,7 +32,7 @@ class IronWare < Oxidized::Model
end
cmd 'show chassis' do |cfg|
- cfg.gsub! "\xFF", '' # ugly hack - avoids JSON.dump utf-8 breakage on 1.9..
+ cfg.gsub! /\xFF/n, '' # ugly hack - avoids JSON.dump utf-8 breakage on 1.9..
cfg.gsub! /(^((.*)Current temp(.*))$)/, '' #remove unwanted lines current temperature
cfg.gsub! /Speed = [A-Z]{3} \(\d{2}\%\)/, '' #remove unwanted lines Speed Fans
cfg.gsub! /current speed is [A-Z]{3} \(\d{2}\%\)/, ''