summaryrefslogtreecommitdiff
path: root/lib/chef/resource/file.rb
diff options
context:
space:
mode:
authorAndrew Brown <andrew.brown@shopify.com>2016-05-31 10:11:39 -0400
committerAndrew Brown <andrew.brown@shopify.com>2016-05-31 10:11:39 -0400
commit9f5653610099d8975921eb58d1283e4d7da56ce7 (patch)
treeba24e416b061897d183e14f686ef420157ed7df7 /lib/chef/resource/file.rb
parent61d1831a9eabd44af6797d49b85ff1c01b71055d (diff)
downloadchef-9f5653610099d8975921eb58d1283e4d7da56ce7.tar.gz
/etc/hosts needs to be non-atomic on docker
Diffstat (limited to 'lib/chef/resource/file.rb')
-rw-r--r--lib/chef/resource/file.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/resource/file.rb b/lib/chef/resource/file.rb
index 71a8e946fd..7088e7613e 100644
--- a/lib/chef/resource/file.rb
+++ b/lib/chef/resource/file.rb
@@ -81,7 +81,7 @@ class Chef
end
def special_docker_files?(file)
- %w{/etc/hostname /etc/resolv.conf}.include?(Pathname(file).cleanpath.to_path)
+ %w{/etc/hosts /etc/hostname /etc/resolv.conf}.include?(Pathname(file).cleanpath.to_path)
end
end
end