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: primary-ip list returns max 50 items #415

Merged
merged 1 commit into from
Nov 11, 2022

Conversation

apricote
Copy link
Member

Calls to hcloud primary-ip list would only return the first page of the results which by default is 50 items. By using .AllWithOpts instead of .List, hcloud-go automatically fetches all pages for us.

Calls to `primary-ip list` would only return the first page of the results
which by default is 50 items. By using `.AllWithOpts` instead of `.List`,
hcloud-go automatically fetches all pages for us.
@apricote apricote added the bug label Nov 11, 2022
@apricote apricote self-assigned this Nov 11, 2022
@apricote apricote merged commit 7d6990f into main Nov 11, 2022
@apricote apricote deleted the fix-primaryip-list-50-items branch November 11, 2022 09:00
apricote pushed a commit that referenced this pull request Oct 19, 2023
On the FloatingIPClient List was used instead of AllWithOpts, which
resulted in "list" only returning the first 50 entries. (Same as #415)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants