parent
a112b072aa
commit
ba8d6ac630
1 changed files with 1 additions and 1 deletions
|
@ -270,7 +270,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