Skip to content

Commit

Permalink
make sure the file exist before unlinking a file as chef file doesn't…
Browse files Browse the repository at this point in the history
… check for file exist before unlink. Pull request submited for this fix chef/chef#1393
  • Loading branch information
Bao Nguyen authored and Denis Barishev committed Oct 28, 2014
1 parent 89740cf commit 3150c6e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions providers/default.rb
Expand Up @@ -36,6 +36,7 @@
# This is useful, as sometimes the backup stored in the file "original"
# is symlinked to "tail"
force_unlink true
only_if do ::File.exist?("/etc/resolvconf/resolv.conf.d/#{name}") end
end

new_resource.updated_by_last_action(true) if r.updated_by_last_action?
Expand Down

0 comments on commit 3150c6e

Please sign in to comment.