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

Fix dir type storage pool creation #251

Merged
merged 1 commit into from Nov 14, 2023
Merged

Fix dir type storage pool creation #251

merged 1 commit into from Nov 14, 2023

Conversation

Szubie
Copy link
Collaborator

@Szubie Szubie commented Nov 14, 2023

When creating a dir type storage pool it is not possible to pass a size - attempting to do so causes an error.

This is a minimal fix that only adds the size portion of the command if the storage type is not dir.

Maybe in future we could explore using the lxc exec for just the bare minimum server setup and then completing the rest of the setup using the Go LXD client, but that's a bigger change to make and would need some testing.

@Szubie Szubie merged commit 1c6073a into master Nov 14, 2023
@Szubie Szubie deleted the dir-storage-pool branch November 14, 2023 16:46
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