mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
core: don't use functions in the input-interpolate-var fixture
Using functions here causes this to test more than it needs to, and requires additional setup in the corresponding tests.
This commit is contained in:
parent
0b4ac6d9e3
commit
6a859f1fe3
@ -1,5 +1,6 @@
|
||||
variable "list" { }
|
||||
variable "length" { }
|
||||
|
||||
resource "template_file" "temp" {
|
||||
count = "${length(split(",", var.list))}"
|
||||
count = var.length
|
||||
template = "foo"
|
||||
}
|
||||
|
@ -2,6 +2,6 @@ module "source" {
|
||||
source = "./source"
|
||||
}
|
||||
module "child" {
|
||||
source = "./child"
|
||||
list = "${module.source.list}"
|
||||
source = "./child"
|
||||
length = module.source.length
|
||||
}
|
||||
|
@ -1,3 +1,3 @@
|
||||
output "list" {
|
||||
value = "foo,bar,baz"
|
||||
output "length" {
|
||||
value = 3
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user