Permalink
Browse files

Merge "Do not fail if the target file of a symlink isn't there"

  • Loading branch information...
2 parents c1a19e4 + f7338e0 commit 2ba77c2b88f68a2522baa4e36d1951dc67559d96 @drnic drnic committed with Gerrit Code Review Oct 12, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 agent/lib/agent/message/apply.rb
@@ -100,7 +100,7 @@ def delete_job_monit_files
if File.symlink?(f)
logger.info("Removing monit symlink target file: " +
"#{File.readlink(f)}")
- FileUtils.rm(File.readlink(f))
+ FileUtils.rm_rf(File.readlink(f))
end
end

0 comments on commit 2ba77c2

Please sign in to comment.