core: Fix TestContext2Input_submoduleTriggersInvalidCount

Its fixture was using a module variable called "count", and that name is
now reserved.
This commit is contained in:
Martin Atkins 2018-05-24 18:33:36 -07:00
parent e7cfbb9737
commit 93ff9f4233
2 changed files with 5 additions and 5 deletions

View File

@ -1,4 +1,4 @@
module "mod" {
source = "./mod"
count = 2
source = "./mod"
instance_count = 2
}

View File

@ -1,11 +1,11 @@
variable "count" {
variable "instance_count" {
}
resource "aws_instance" "foo" {
count = "${var.count}"
count = "${var.instance_count}"
}
module "submod" {
source = "./submod"
list = ["${aws_instance.foo.*.id}"]
list = ["${aws_instance.foo.*.id}"]
}