]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/sysctl/recipes/default.rb
Fix some issues identified by rubocop
[chef.git] / cookbooks / sysctl / recipes / default.rb
index d2797a289af5db4943627630739dece3b7bf5aa9..920402a6ebb0450ad5909811140c7f30288c3d34 100644 (file)
@@ -47,7 +47,7 @@ node[:sysctl].each_value do |group|
     file sysctl_file do
       content "#{value}\n"
       atomic_update false
-      only_if { File.exists?(sysctl_file) }
+      only_if { File.exist?(sysctl_file) }
     end
   end
 end