core: update test count vars to num

This commit is contained in:
James Bardin 2018-05-30 16:15:26 -04:00 committed by Martin Atkins
parent 7edff454f2
commit 90893eb3f9
2 changed files with 3 additions and 3 deletions

View File

@ -3406,7 +3406,7 @@ func TestContext2Apply_multiVar(t *testing.T) {
},
),
Variables: InputValues{
"count": &InputValue{
"num": &InputValue{
Value: cty.NumberIntVal(3),
SourceType: ValueFromCaller,
},
@ -3441,7 +3441,7 @@ func TestContext2Apply_multiVar(t *testing.T) {
},
),
Variables: InputValues{
"count": &InputValue{
"num": &InputValue{
Value: cty.NumberIntVal(1),
SourceType: ValueFromCaller,
},

View File

@ -1,8 +1,8 @@
variable "num" {}
resource "aws_instance" "bar" {
foo = "bar${count.index}"
count = "${var.num}"
foo = "bar${count.index}"
}
output "output" {