Closed troyanov closed 1 year ago
Changes look good. Since you opened this one, what about memory (
int
) and storage, which is float64?!?Same for VMHostResource
Well, my intent was to fix one particular issue and not all the type issues in the codebase, but if we want to address them all at once, I am fine with it 🙂
Thank you very much for taking care of all the potential overflows. LGTM :beers:
Use
int64
type for disk size.Resolves https://github.com/maas/terraform-provider-maas/issues/116
When compiled on a 32-bit platform
int
will beint32
and will lead to an overflow and JSON unmarshal error: