aziontech / terraform-provider-azion

Terraform provider for managing Azion resources.
Mozilla Public License 2.0
3 stars 3 forks source link

Bugfix - Weight property changed to INT64 #132

Closed VitorAEltz closed 2 months ago

VitorAEltz commented 10 months ago

Description:

This pull request addresses a bug in our codebase where the Weight property was incorrectly typed as String. The correct type for the Weight property is Int64.

The changes in this pull request include:

  1. In the OriginsDataSourceModel struct, the Weight property has been changed from types.String to types.Int64.

  2. In the OriginsAddressResults struct, the Weight property has been changed from types.String to types.Int64.

  3. In the OriginResourceResults struct, the Weight property has been changed from types.String to types.Int64.

  4. In the OriginAddress struct, the Weight property has been changed from types.String to types.Int64.

  5. In the Schema function of the originResource struct, the Weight attribute has been changed from schema.StringAttribute to schema.Int64Attribute.

  6. In the Create, Read, and Update functions of the originResource struct, the Weight value is now retrieved using types.Int64Value instead of types.StringValue.

These changes ensure that the Weight property is handled correctly throughout the codebase, preventing potential type mismatch errors and improving the accuracy of our data handling.