Closed Xowap closed 8 years ago
Bump. I have > 200 droplets and just broke my dynamic inventory script by upgrading to DigitalOcean API V2.
@Xowap 100% agree: #29 is a bug, not an enhancement request.
+1, would be great to have this fix pulled.
+1, pull this request please
+1, we need this urgently as Digital Ocean API v1 has been deprecated as of today:
Thanks - PR Merged - will release to pip later on today.
Good :+1:
As stated in #29, only the first page of response was fetched (which is a bug and not a bloody enhancement, btw).
This PR fixes that with a decorator around the
request_v2()
method which, in case ofGET
request, will parse the output, find next page if required and will append the content to the current content.I can't guarantee I didn't break anything due to the lack of unit tests, but my Ansible script still works.
Also, this project's code seriously requires to get through PEP 8 linting, but that's none of my business.