Merge pull request #139 from la-magra/is-crlf-hosts-file

Fix situation with hosts file line endings
This commit is contained in:
Seth Reeser 2015-07-24 09:24:10 -04:00
commit 7bee95fc95
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ module VagrantPlugins
file = Pathname.new(file)
old_file_content = file.read
new_file_content = update_content(old_file_content, resolving_machine, include_id)
file.open('w') { |io| io.write(new_file_content) }
file.open('wb') { |io| io.write(new_file_content) }
old_file_content != new_file_content
end