Description
When searching a template including a correct value in sort_on field, a type error is raised.
If the sort_on variable is commented, it runs normally.
Terraform and Provider version
Terraform v1.12.2
on linux_arm64
- provider registry.terraform.io/cloudflare/cloudflare v4.52.0
- provider registry.terraform.io/hashicorp/null v3.2.4
- provider registry.terraform.io/opennebula/opennebula v1.5.0
OpenNebula 7.0.0
Affected resources and data sources
Terraform configuration
data "opennebula_templates" "busqueda" {
name_regex = local.opennebula.vm.template
sort_on = "register_date"
order = "ASC" # La más reciente
}
Expected behavior
No error when correct value provided.
Actual behavior
Errors despite the provided value is correct.
Steps to Reproduce
Create the data source and run terraform plan.
Debug output
No response
Panic output
Error: type "sort_on" must be one of: id,name,cpu,vcpu,memory,register_date
│
│ with data.opennebula_templates.busqueda,
│ on data.tf line 3, in data "opennebula_templates" "busqueda":
│ 3: sort_on = "register_date"
Important factoids
No response
References
No response
Description
When searching a template including a correct value in sort_on field, a type error is raised.
If the sort_on variable is commented, it runs normally.
Terraform and Provider version
Terraform v1.12.2
on linux_arm64
OpenNebula 7.0.0
Affected resources and data sources
Terraform configuration
Expected behavior
No error when correct value provided.
Actual behavior
Errors despite the provided value is correct.
Steps to Reproduce
Create the data source and run
terraform plan.Debug output
No response
Panic output
Important factoids
No response
References
No response