Skip to content
This repository has been archived by the owner on Nov 24, 2022. It is now read-only.

Truncate config on writes #486

Closed

Conversation

boltronics
Copy link

Fixes #485. As per https://apidock.com/ruby/IO/open/class File::RDWR seems to lack File::TRUNC. Hence the call from prune_customizations did nothing since it just overwrite the start of the file (which is presumably already untouched), but left the VAGRANT-BEGIN/VAGRANT-END block that followed completely untouched.

By adding File::TRUNC, prune_customizations will cause those tailing blocks to be removed as intended.

glenux added a commit to glenux/contrib-vagrant-lxc that referenced this pull request May 4, 2021
@fgrehm fgrehm added the ignored label Nov 17, 2022
@fgrehm
Copy link
Owner

fgrehm commented Nov 17, 2022

Hey, sorry for the silence here but this project is looking for maintainers 😅

As per #499, I've added the ignored label and will close this issue. Thanks for the interest in the project and LMK if you want to step up and take ownership of this project on that other issue 👋

@fgrehm fgrehm closed this Nov 17, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Duplicated unprivileged config BEGIN/END block
2 participants