X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/d99ef278bbfbce480d2ba25e7719d804c1684cbf..5a753e9b0b3f168314666812681dee6056aa3996:/cookbooks/sysfs/recipes/default.rb?ds=sidebyside diff --git a/cookbooks/sysfs/recipes/default.rb b/cookbooks/sysfs/recipes/default.rb index f0290d4e7..0e59c1e1e 100644 --- a/cookbooks/sysfs/recipes/default.rb +++ b/cookbooks/sysfs/recipes/default.rb @@ -33,13 +33,13 @@ template "/etc/sysfs.conf" do end node[:sysfs].each_value do |group| - group[:parameters].each do |key,value| + group[:parameters].each do |key, value| sysfs_file = "/sys/#{key}" file sysfs_file do content "#{value}\n" atomic_update false - only_if { File.exists?(sysfs_file) } + only_if { File.exist?(sysfs_file) } end end end