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 changing the landscape snap config using snap set #233

Merged
merged 1 commit into from
Apr 3, 2024

Conversation

st3v3nmw
Copy link
Collaborator

@st3v3nmw st3v3nmw commented Mar 22, 2024

This will allow us to change the landscape-client.conf config file using snap set.

snap set doesn't allow us to view the previous value of the config so we have to clean up the snap config to detect changes on the next run. Unsetting the values helps us avoid conflicts with configuration written through landscape-client.config.

It also expands the range of options that can be set. For instance, it's now possible to configure the plugins when using a gadget snap.

Please note that the landscape-client service needs to be restarted after config changes.

Issue reported by @dilyn-corner

@st3v3nmw st3v3nmw marked this pull request as ready for review March 22, 2024 16:23
Copy link
Contributor

@Perfect5th Perfect5th left a comment

Choose a reason for hiding this comment

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

LGTM, will merge.

@Perfect5th Perfect5th merged commit b2d8cc9 into canonical:master Apr 3, 2024
5 checks passed
@st3v3nmw st3v3nmw deleted the allow-snap-get-set branch April 4, 2024 11:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants