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

Validate config keys #1886

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Validate config keys #1886

wants to merge 3 commits into from

Conversation

r4f4
Copy link
Contributor

@r4f4 r4f4 commented Jul 10, 2019

WIP on the second patch because I want to confirm whether this is the desired approach.

@r4f4
Copy link
Contributor Author

r4f4 commented Aug 9, 2019

To properly test this, #1898 is needed.

@r4f4
Copy link
Contributor Author

r4f4 commented Aug 13, 2019

Dropping WIP since with #1898 the tests pass.

Signed-off-by: Rafael Fonseca <r4f4rfs@gmail.com>
When using `ostree config set`, invalid values given are written into
new config file, without error given. Errors are just picked up the next
time `ostree_reload_repo_config` is called. Instead, let's do some
validation before setting the config value.

Fixes ostreedev#1827

Signed-off-by: Rafael Fonseca <r4f4rfs@gmail.com>
Signed-off-by: Rafael Fonseca <r4f4rfs@gmail.com>
@r4f4
Copy link
Contributor Author

r4f4 commented Aug 16, 2019

Updated to make use of #1899 in the tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant