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

lxc/storage: Initialise writable storage pool config map if nil. #12353

Merged
merged 1 commit into from
Oct 6, 2023

Conversation

markylaing
Copy link
Contributor

@markylaing markylaing commented Oct 6, 2023

After creating an empty pool with e.g. lxc storage create test dir, the following command panics lxc storage set test rsync.compression true and the config key is not set.

This commit initialises the writable config map if it is nil and fixes the command.

@markylaing markylaing added the Bug Confirmed to be a bug label Oct 6, 2023
@markylaing markylaing self-assigned this Oct 6, 2023
@markylaing markylaing requested a review from tomponline as a code owner October 6, 2023 10:10
@github-actions github-actions bot added the API Changes to the REST API label Oct 6, 2023
@markylaing markylaing force-pushed the storage-pool-set-panic branch from 327aba8 to dd74ccb Compare October 6, 2023 10:43
@markylaing markylaing changed the title shared/api: Initialise writable storage pool config map if nil. lxc/storage: Initialise writable storage pool config map if nil. Oct 6, 2023
@github-actions github-actions bot removed the API Changes to the REST API label Oct 6, 2023
@tomponline tomponline merged commit a733f9b into canonical:main Oct 6, 2023
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Confirmed to be a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants