Skip to content

Fixes/server #12

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

Merged
merged 23 commits into from
Mar 9, 2023
Merged

Fixes/server #12

merged 23 commits into from
Mar 9, 2023

Conversation

yakmoose
Copy link
Contributor

@yakmoose yakmoose commented Mar 3, 2023

This is just a small fix to stop the unmarshalling from spewing on the server list endpoint.

It currently returns disk sizes as either a string representing a number, or a number/int depending on the type of server. Cloud containers return an int, where as the other types use a string.

This wraps the field as a MaybeInt type that has an unmarshaller to handle so we don't get things breaking, at least until someone can fix the api :)

Cheers

yakmoose and others added 23 commits January 17, 2023 10:09
updates changes to the handling of argument handling
…ing or an int based on the server being a vps or a cloud server
…ld go in terraform. but feels like addressing api quirks should live with the api
@tommysitehost tommysitehost force-pushed the dev branch 2 times, most recently from aa14ef3 to 09d39c1 Compare March 9, 2023 02:38
@tommysitehost
Copy link
Collaborator

tommysitehost commented Mar 9, 2023

Hi @yakmoose,

Thank you for pointing this out.

We are aware of this issue and will have internal discussions around standardising the return types across all our endpoints. We will merge your MR, use it as a work around for now. I will create GitHub issues around these areas so we can keep track of it.

Cheers,
Tommy

@tommysitehost tommysitehost merged commit 8e50b4f into sitehostnz:dev Mar 9, 2023
@yakmoose yakmoose deleted the fixes/server branch May 14, 2024 11:17
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