-
Notifications
You must be signed in to change notification settings - Fork 289
Pagination never terminates for oci.tenant_manager_control_plane.OrganizationClient.list_organizations in Python SDK #718
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
Comments
Hi, Did you try the below ?
|
Yes, I was initially doing that, but the call to oci.pagination.list_call_get_all_results never exited. |
Hi Davide, how many organizations do you have in order to check the pagination ? |
In my testing setup there is just one Tenancy and one Organization. |
Without pagination you will be able to extract all the organizations that allowed |
@adizohar, now the pagination is behaving correctly. I guess something has been fixed on the backend side. |
It looks like pagination is broken for oci.tenant_manager_control_plane.OrganizationClient.list_organizations, each call returns a response object with a different next_page token and has_next_page set to True, but the items in the data are always the same.
To reproduce just run:
organization_client = oci.tenant_manager_control_plane.OrganizationClient(config)
for response in oci.pagination.list_call_get_all_results_generator(
organization_client.list_organizations, "response", tenancy_ocid
):
print(response.data.items)
print(response.next_page)
print(response.has_next_page)
The text was updated successfully, but these errors were encountered: