You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
Description
name_regex
not workingOn every input it return:
sort_on
declareted twise. It's error. Should be: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
The text was updated successfully, but these errors were encountered: