Merge pull request #486 from boltronics/truncate_config_on_update
This commit is contained in:
commit
aadfdb0229
1 changed files with 1 additions and 1 deletions
|
@ -275,7 +275,7 @@ module Vagrant
|
||||||
def write_config(contents)
|
def write_config(contents)
|
||||||
confpath = base_path.join('config').to_s
|
confpath = base_path.join('config').to_s
|
||||||
begin
|
begin
|
||||||
File.open(confpath, File::RDWR) do |file|
|
File.open(confpath, File::WRONLY|File::TRUNC) do |file|
|
||||||
file.write contents
|
file.write contents
|
||||||
end
|
end
|
||||||
rescue
|
rescue
|
||||||
|
|
Loading…
Reference in a new issue