Skip to content

Allow empty AddrPorts#264

Merged
masnax merged 1 commit into
canonical:v3from
masnax:fix-ip-port
Oct 10, 2024
Merged

Allow empty AddrPorts#264
masnax merged 1 commit into
canonical:v3from
masnax:fix-ip-port

Conversation

@masnax
Copy link
Copy Markdown
Contributor

@masnax masnax commented Oct 10, 2024

#179 attempted to allow empty addrports for the /core/1.0 API, but did not consider that after sending the request, parsing into a struct it on the other side would still fail.

So instead, the types.ParseAddrPort helper now fully supports empty addresses.

Signed-off-by: Max Asnaashari <max.asnaashari@canonical.com>
Copy link
Copy Markdown
Contributor

@roosterfish roosterfish left a comment

Choose a reason for hiding this comment

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

Thanks!

@masnax masnax merged commit 8e1abe6 into canonical:v3 Oct 10, 2024
@roosterfish
Copy link
Copy Markdown
Contributor

Just wondering where did this cause trouble?

@masnax
Copy link
Copy Markdown
Contributor Author

masnax commented Oct 10, 2024

Just wondering where did this cause trouble?

Daemon enforcement. MicroCeph/OVN were correctly sending their results from /core/1.0 but we could not parse them in MicroCloud, since there was no init address.

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