summaryrefslogtreecommitdiff
path: root/lib/oxidized/model/ironware.rb
diff options
context:
space:
mode:
authorytti <saku@ytti.fi>2015-06-17 13:26:56 +0300
committerytti <saku@ytti.fi>2015-06-17 13:26:56 +0300
commitd63085fa42df76a8e8a018a6eb83825dc94a04b8 (patch)
treeb17266ad945369a7018be87ea82b27097e2be363 /lib/oxidized/model/ironware.rb
parentbf7a21dd08c68b0b8578484156a196cfaab54d7d (diff)
parent59e87d0e1ebb477735b9c63f54c6ae5436cfd334 (diff)
Merge pull request #134 from FlorianDoublet/ironwareModif
fix regexp error with ruby 2.1
Diffstat (limited to 'lib/oxidized/model/ironware.rb')
-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}\%\)/, ''