cloudify-cosmo / cloudify-cli

Cloudify's CLI
Apache License 2.0
42 stars 47 forks source link

Skip pagination when run cfy dep group extend --into-environments #1468

Open ronaldnascimentosilva opened 1 year ago

ronaldnascimentosilva commented 1 year ago

Command cfy deployment group extend --into-enviroment env-group test-group only extend 1000 deployments when the env-group have more than 1000 deployments

$ cfy dep group create -b blueprint_id -i auth_url="http://myserver/v3" env-group
Group env-group created
$ cfy dep group extend --count 1050 env-group
Group env-group updated. It now contains 1050 deployments
# Wait until all executions are completed
$ cfy exec summary status
$ cfy exec group start install -g env-group
# Wait until all executions are completed
$ cfy exec summary status
$ cfy dep group create -b tester-blueprint test-group
Group test-group created
$ cfy dep group extend --into-environments env-group test-group
Group test-group updated. It now contains 1000 deployments

After some investigation I realize the endpoint has a default pagination that limit the query, so i added a parameter in the request to ignore the pagination in this case.

ronaldnascimentosilva commented 1 year ago

https://cloudifysource.atlassian.net/browse/WDR-156