From 93ff9f4233b15b700448f312406ef050416f18d5 Mon Sep 17 00:00:00 2001 From: Martin Atkins Date: Thu, 24 May 2018 18:33:36 -0700 Subject: [PATCH] core: Fix TestContext2Input_submoduleTriggersInvalidCount Its fixture was using a module variable called "count", and that name is now reserved. --- terraform/test-fixtures/input-submodule-count/main.tf | 4 ++-- terraform/test-fixtures/input-submodule-count/mod/main.tf | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/terraform/test-fixtures/input-submodule-count/main.tf b/terraform/test-fixtures/input-submodule-count/main.tf index 1cbfc3450..723a15c6d 100644 --- a/terraform/test-fixtures/input-submodule-count/main.tf +++ b/terraform/test-fixtures/input-submodule-count/main.tf @@ -1,4 +1,4 @@ module "mod" { - source = "./mod" - count = 2 + source = "./mod" + instance_count = 2 } diff --git a/terraform/test-fixtures/input-submodule-count/mod/main.tf b/terraform/test-fixtures/input-submodule-count/mod/main.tf index 995abe256..dd7cf3d9a 100644 --- a/terraform/test-fixtures/input-submodule-count/mod/main.tf +++ b/terraform/test-fixtures/input-submodule-count/mod/main.tf @@ -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}"] }