Ignore failure changing sysfs values
authorTom Hughes <tom@compton.nu>
Sat, 25 Aug 2018 21:36:13 +0000 (22:36 +0100)
committerTom Hughes <tom@compton.nu>
Sat, 25 Aug 2018 21:36:13 +0000 (22:36 +0100)
cookbooks/sysfs/recipes/default.rb

index fa7983d626b96d22df7db04d78c7e4abb1aa012c..d046b1f3684789b6752ff51694edcb4b21bd63d3 100644 (file)
@@ -39,6 +39,7 @@ node[:sysfs].each_value do |group|
     file sysfs_file do
       content "#{value}\n"
       atomic_update false
+      ignore_failure true
       only_if { File.exist?(sysfs_file) }
     end
   end