]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/hardware/recipes/default.rb
Fix some issues identified by rubocop
[chef.git] / cookbooks / hardware / recipes / default.rb
index a508fff6b55e7e3be4770a48f3469bb7e8a8de58..441dbd1e3ad8104ac9d6c7e319d4e01e2e8066b3 100644 (file)
@@ -253,7 +253,7 @@ end
   end
 end
 
   end
 end
 
-if File.exists?("/etc/mdadm/mdadm.conf")
+if File.exist?("/etc/mdadm/mdadm.conf")
   mdadm_conf = edit_file "/etc/mdadm/mdadm.conf" do |line|
     line.gsub!(/^MAILADDR .*$/, "MAILADDR admins@openstreetmap.org")
 
   mdadm_conf = edit_file "/etc/mdadm/mdadm.conf" do |line|
     line.gsub!(/^MAILADDR .*$/, "MAILADDR admins@openstreetmap.org")