# File lib/rubyipmi/ipmitool/errorcodes.rb, line 21 def self.search(code) fix = @@codes.fetch(code,nil) if fix.nil? @@codes.each do | error, result | # the error should be a subset of the actual erorr if code =~ /.*#{error}.*/i return result end end else return fix end raise "No Fix found" if fix.nil? end