X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/261e7e9cd1a9882faa4ed7087b5902ebafe25988..b20599b6503be65674c3e420be6cca91b507ac0a:/cookbooks/sysctl/recipes/default.rb diff --git a/cookbooks/sysctl/recipes/default.rb b/cookbooks/sysctl/recipes/default.rb index d2797a289..920402a6e 100644 --- a/cookbooks/sysctl/recipes/default.rb +++ b/cookbooks/sysctl/recipes/default.rb @@ -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