Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow resetting and freshly populating collection/list settings via CLI flags #3216

Merged
merged 1 commit into from
Nov 21, 2024

Conversation

septatrix
Copy link
Contributor

Previously it was only possible to completely reset but not append, or only append but not reset to collection/list settings via command line arguments.
Now we track if a setting has ever been set to None (i.e. reset) during command line parsing.
This information is used during value finalization to decide whether to merge both collections or only keep the CLI value.

This fixes #3208

mkosi/config.py Outdated Show resolved Hide resolved
Previously it was only possible to completely reset but not append,
or only append but not reset to collection/list settings
via command line arguments.
Now we track if a setting has ever been set to None (i.e. reset)
during command line parsing.
This information is used during value finalization
to decide whether to merge both collections or only keep the CLI value.
@DaanDeMeyer DaanDeMeyer merged commit 3d2fbda into systemd:main Nov 21, 2024
31 of 36 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Unable to reset list variables to empty list from CLI
3 participants