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

net: correctly return and handle started response with no network. #56

Merged
merged 1 commit into from
Oct 3, 2024

Conversation

jrasell
Copy link
Member

@jrasell jrasell commented Oct 3, 2024

It is possible operators do not configure a network for a VM driver task. In this case, the plugin should correctly handle the response from the network controller.

Along with the main fix, the change updates the controller responses, so that an object is returned when there isn't an error. This is because returning nil,nil is a weird pattern in Go and catches people out; even the person that wrote it.

@jrasell jrasell self-assigned this Oct 3, 2024
It is possible operators do not configure a network for a VM
driver task. In this case, the plugin should correctly handle the
response from the network controller.

Along with the main fix, the change updates the controller
responses, so that an object is returned when there isn't an
error. This is because returning nil,nil is a weird pattern in Go
and catches people out; even the person that wrote it.
Copy link
Member

@Juanadelacuesta Juanadelacuesta left a comment

Choose a reason for hiding this comment

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

Looking good :)

@jrasell jrasell merged commit 205231a into main Oct 3, 2024
10 checks passed
@jrasell jrasell deleted the b-fix-handling-no-network-config branch October 3, 2024 09:37
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