Merge pull request #486 from boltronics/truncate_config_on_update

This commit is contained in:
Glenn Y. Rolland 2021-05-05 00:59:01 +02:00
commit aadfdb0229

View file

@ -275,7 +275,7 @@ module Vagrant
def write_config(contents)
confpath = base_path.join('config').to_s
begin
File.open(confpath, File::RDWR) do |file|
File.open(confpath, File::WRONLY|File::TRUNC) do |file|
file.write contents
end
rescue