Altinity / terraform-provider-altinitycloud

Terraform provider for Altinity.Cloud ☁️
https://registry.terraform.io/providers/altinity/altinitycloud/latest/docs
Apache License 2.0
7 stars 0 forks source link

wrong error when env zones list is empty #77

Closed Elmo33 closed 3 months ago

Elmo33 commented 3 months ago

if zones attribute is set to an empty list terraform returns this error:

│ Attribute zones list must contain at least 1 elements, got: 0

the issue is that min limit is 2, so if the user sets empty list it should return:

│ Attribute zones list must contain at least 2 elements, got: 0

and if they set to 1 it should still return:

│ Attribute zones list must contain at least 2 elements, got: 1
ianaya89 commented 3 months ago

Already fixed https://github.com/Altinity/terraform-provider-altinitycloud/commit/dd77f533e7092d78271d1c98fa370082c4cd290d