ngine-io / ansible-collection-vultr

Vultr Ansible Collections
https://galaxy.ansible.com/ngine_io/vultr
GNU General Public License v3.0
16 stars 11 forks source link

Support float for "allowed_bandwidth_gb" parameter in server info APIs response. #35

Closed alexander-gridnev closed 1 year ago

alexander-gridnev commented 1 year ago

Got this issue https://github.com/trailofbits/algo/issues/14569 during deploying to vultr. Vultr API returns float values for "allowed_bandwidth_gb" parameter, which is not documented, but currently is actual.

Example of https://api.vultr.com/v1/server/list response:

"allowed_bandwidth_gb":"341.333"

resmo commented 1 year ago

Thanks @alexander-gridnev for the fix and @jmatraszek for the report and test: I will have a look at it asap.

Please note, this collection has modules using an deprecated Vultr API and I am about to officially deprecate the collection in favor the new collection https://github.com/vultr/ansible-collection-vultr (which I also maintain).

Please consider to switch.