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:
Martin Atkins 2018-05-11 15:43:05 -07:00
parent 0b4ac6d9e3
commit 6a859f1fe3
3 changed files with 7 additions and 6 deletions

View File

@ -1,5 +1,6 @@
variable "list" { }
variable "length" { }
resource "template_file" "temp" {
count = "${length(split(",", var.list))}"
count = var.length
template = "foo"
}

View File

@ -2,6 +2,6 @@ module "source" {
source = "./source"
}
module "child" {
source = "./child"
list = "${module.source.list}"
source = "./child"
length = module.source.length
}

View File

@ -1,3 +1,3 @@
output "list" {
value = "foo,bar,baz"
output "length" {
value = 3
}