Fix style issues found by new rubocop version
[chef.git] / cookbooks / hardware / recipes / default.rb
index 551dd5b382b43b311233fd06cdca08e27b793c81..d95825669fbf030c8d25ff35104a8fda11d020b1 100644 (file)
@@ -368,7 +368,7 @@ if tools_packages.include?("areca")
 end
 
 disks.each do |disk|
-  if disk[:device] =~ /^cciss\/(.*)$/
+  if disk[:device] =~ %r{^cciss/(.*)$}
     id = File.read("/sys/bus/cciss/devices/#{Regexp.last_match[1]}/unique_id").chomp
 
     disk[:munin] = "cciss-3#{id.downcase}"