Skip to content

Fix dir type storage pool creation#251

Merged
Szubie merged 1 commit intomasterfrom
dir-storage-pool
Nov 14, 2023
Merged

Fix dir type storage pool creation#251
Szubie merged 1 commit intomasterfrom
dir-storage-pool

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.

1 participant