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

configstate: return error if patch is invalid #3280

Merged

Conversation

kyrofa
Copy link
Contributor

@kyrofa kyrofa commented May 8, 2017

snap set silently ignores invalid keys/values by not checking if the transaction successfully sets them. This PR fixes LP: #1689396 by checking, and if they weren't successfully set, returning an error.

`snap set` silently ignores invalid keys/values by not checking if the
transaction successfully sets them. Start checking, and if they weren't
successfully set, return an error.

LP: #1689396

Signed-off-by: Kyle Fazzari <kyle@canonical.com>
@kyrofa kyrofa force-pushed the bugfix/1689396/snap_set_invalid_key branch from 6623ebe to 7e955d0 Compare May 8, 2017 22:37
Copy link
Collaborator

@zyga zyga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@chipaca chipaca merged commit 8f767b8 into snapcore:master May 9, 2017
@kyrofa kyrofa deleted the bugfix/1689396/snap_set_invalid_key branch May 9, 2017 16:18
@kyrofa
Copy link
Contributor Author

kyrofa commented May 9, 2017

Thanks guys 😃 .

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