data "opennebula_templates" "found_templates" {
name_regex = "^.*centos-7.*$"
has_cpu = true
sort_on = "register_date"
order = "ASC"
}
On every input it return:
Planning failed. Terraform encountered an error while generating this plan.
╷
│ Error: templates filtering failed
│
│ with data.opennebula_templates.found_templates,
│ on main.tf line 21, in data "opennebula_templates" "found_templates":
│ 21: data "opennebula_templates" "found_templates" {
│
│ no templates match the constraints
╵
In doc option sort_on declareted twise. It's error. Should be:
data "opennebula_templates" "example" {
name_regex = "test.*"
has_cpu = true
sort_on = "register_date"
order = "ASC"
}
In doc option order should be in uppercase accoding code. I.e.:
* `order` - (Optional) Ordering of the sort: ASC or DESC.
### Expected behavior
Template should be found
### Actual behavior
Planning failed. Terraform encountered an error while generating this plan.
╷
│ Error: templates filtering failed
│
│ with data.opennebula_templates.found_templates,
│ on main.tf line 21, in data "opennebula_templates" "found_templates":
│ 21: data "opennebula_templates" "found_templates" {
│
│ no templates match the constraints
### Steps to Reproduce
Just try to search templates by regexp
### Debug output
_No response_
### Panic output
_No response_
### Important factoids
_No response_
### References
https://github.com/OpenNebula/terraform-provider-opennebula/issues/322
Description
name_regex
not workingOn every input it return:
In doc option
sort_on
declareted twise. It's error. Should be:In doc option
order
should be in uppercase accoding code. I.e.:Terraform and Provider version
Affected resources and data sources
opennebula_templates
Terraform configuration
Planning failed. Terraform encountered an error while generating this plan.
╷ │ Error: templates filtering failed │ │ with data.opennebula_templates.found_templates, │ on main.tf line 21, in data "opennebula_templates" "found_templates": │ 21: data "opennebula_templates" "found_templates" { │ │ no templates match the constraints