-
Notifications
You must be signed in to change notification settings - Fork 164
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
Ability to control the number of hosts returned per page #865
Conversation
You could introduce a "total limit" parameter here. |
@mdellweg the code does fetch all hosts: foreman-ansible-modules/plugins/inventory/foreman.py Lines 176 to 177 in 8ebda3f
This is just controlling how big the individual batches are. |
The code does get all hosts, but for large environments, increasing the number of hosts minimizes the number of requests sent to the Foreman server. I'm going to send another PR with the |
The |
Co-authored-by: Matthias Dellweg <2500@gmx.de>
Ability to control the number of hosts returned per page which can be definitely useful some users.
Result on Foreman: