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: Add validation for non-empty remote address #13694

Merged
merged 2 commits into from
Jul 2, 2024

Conversation

boltmark
Copy link
Contributor

@boltmark boltmark commented Jul 1, 2024

This PR adds a check to ensure that the provided remote address is not empty when adding a new remote server. In place of the previous panic, we now return an error message to the user.

Closes #13682

@boltmark boltmark requested a review from tomponline as a code owner July 1, 2024 16:31
@tomponline
Copy link
Member

Signed-off-by: Mark Bolton <mark.bolton@canonical.com>
Signed-off-by: Mark Bolton <mark.bolton@canonical.com>
@boltmark boltmark force-pushed the fix-empty-remote-target-panic branch from 8402995 to 6a57144 Compare July 2, 2024 17:16
Copy link
Member

@tomponline tomponline left a comment

Choose a reason for hiding this comment

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

Thanks!

@tomponline tomponline merged commit 6545391 into canonical:main Jul 2, 2024
27 of 28 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.

lxc remote add target '' causes a panic
2 participants