azure icon indicating copy to clipboard operation
azure copied to clipboard

Some modules do not manage result pagination

Open bagasse opened this issue 9 months ago • 4 comments
trafficstars

SUMMARY

Some modules do not manage result pagination

ISSUE TYPE
  • Bug Report
COMPONENT NAME
  • azure_rm_aduser
  • azure_rm_adgroup
  • azure_rm_adgroup_info
COLLECTION VERSION
dev branch
STEPS TO REPRODUCE

Pagination should be handled at least for:

  • https://github.com/ansible-collections/azure/blob/dev/plugins/modules/azure_rm_aduser.py#L546
  • https://github.com/ansible-collections/azure/blob/dev/plugins/modules/azure_rm_aduser_info.py#L303
  • https://github.com/ansible-collections/azure/blob/dev/plugins/modules/azure_rm_adgroup.py#L499
  • https://github.com/ansible-collections/azure/blob/dev/plugins/modules/azure_rm_adgroup.py#L521
  • https://github.com/ansible-collections/azure/blob/dev/plugins/modules/azure_rm_adgroup.py#L533
  • https://github.com/ansible-collections/azure/blob/dev/plugins/modules/azure_rm_adgroup.py#L555
  • https://github.com/ansible-collections/azure/blob/dev/plugins/modules/azure_rm_adgroup_info.py#L335
  • https://github.com/ansible-collections/azure/blob/dev/plugins/modules/azure_rm_adgroup_info.py#L358
  • https://github.com/ansible-collections/azure/blob/dev/plugins/modules/azure_rm_adgroup_info.py#L375
  • https://github.com/ansible-collections/azure/blob/dev/plugins/modules/azure_rm_adgroup_info.py#L390
  • https://github.com/ansible-collections/azure/blob/dev/plugins/modules/azure_rm_adgroup_info.py#L403

Eg: like it's done in https://github.com/ansible-collections/azure/blob/dev/plugins/modules/azure_rm_aduser_info.py#L284 (or on a global level ?)

EXPECTED RESULTS

All paginated results should be handled

ACTUAL RESULTS

Modules may provide truncated results when item count in list output is greater than pagination size used

bagasse avatar Jan 28 '25 09:01 bagasse