Skip to content
This repository has been archived by the owner on Feb 3, 2023. It is now read-only.

Commit

Permalink
Merge pull request fgrehm#486 from boltronics/truncate_config_on_update
Browse files Browse the repository at this point in the history
  • Loading branch information
glenux committed May 4, 2021
2 parents 3421d7e + ba8d6ac commit aadfdb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/vagrant-lxc/driver.rb
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ def write_customizations(customizations)
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
Expand Down

0 comments on commit aadfdb0

Please sign in to comment.