We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug Inventory plugin does not return more than 500 VMs entities from PC with more than 500 VMs (in my test it was 640)
To Reproduce Steps to reproduce the behavior:
ansible-inventory --list
https://github.com/nutanix/nutanix.ansible/blob/f4174ea138fce27ba385e83bf3cd1ae6f6fdfd27/plugins/inventory/ntnx_prism_vm_inventory.py#L57
cat nutanix.yml plugin: nutanix.ncp.ntnx_prism_vm_inventory nutanix_hostname: "" nutanix_password: "" nutanix_username: "admin" nutanix_port: "9440" validate_certs: false data: {"offset": 0, "length": 1000}
Stack trace no stack trace we simple got in return just 1st 500 VMs
Expected behavior As PC V3 API has limitation of 500 entities to return we need to implement pagination on list method of entity class maybe
https://github.com/nutanix/nutanix.ansible/blob/f4174ea138fce27ba385e83bf3cd1ae6f6fdfd27/plugins/module_utils/entity.py#L157
The text was updated successfully, but these errors were encountered:
Fixed in release v1.7.0
Sorry, something went wrong.
Gevorg-Khachatryan-97
No branches or pull requests
Describe the bug
Inventory plugin does not return more than 500 VMs entities from PC with more than 500 VMs (in my test it was 640)
To Reproduce
Steps to reproduce the behavior:
ansible-inventory --list
Tried to setup length to 1000
https://github.com/nutanix/nutanix.ansible/blob/f4174ea138fce27ba385e83bf3cd1ae6f6fdfd27/plugins/inventory/ntnx_prism_vm_inventory.py#L57
Stack trace
no stack trace we simple got in return just 1st 500 VMs
Expected behavior
As PC V3 API has limitation of 500 entities to return we need to implement pagination on
list method of entity class maybe
https://github.com/nutanix/nutanix.ansible/blob/f4174ea138fce27ba385e83bf3cd1ae6f6fdfd27/plugins/module_utils/entity.py#L157
The text was updated successfully, but these errors were encountered: