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 volume rename if cluster desination target is set #12410

Merged
merged 2 commits into from
Oct 18, 2023

Conversation

roosterfish
Copy link
Contributor

This fixes a regression introduced in #12348
which causes the --destination-target flag to be ignored.

When renaming a volume using lxc storage volume move, the args were
passed to the handler behind lxc storage volume rename which does not
support the --destination-target flag.

Instead if the destination flag is set when renaming a volume, use the handler for volume movements.

…is set

This fixes a regression introduced in canonical#12348
which causes the `--destination-target` flag to be ignored.

When renaming a volume using `lxc storage volume move`, the args were
passed to the handler behind `lxc storage volume rename` which does not
support the `--destination-target` flag.

Instead if the destination flag is set when renaming a volume, use the handler for volume movements.

Signed-off-by: Julian Pelizäus <julian.pelizaeus@canonical.com>
Signed-off-by: Julian Pelizäus <julian.pelizaeus@canonical.com>
@roosterfish
Copy link
Contributor Author

In the meantime cluster tests are running fine on my fork https://github.com/roosterfish/lxd/actions/runs/6559619100

@tomponline tomponline merged commit 69b6b09 into canonical:main Oct 18, 2023
25 checks passed
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.

2 participants