core: update test count vars to num
This commit is contained in:
parent
7edff454f2
commit
90893eb3f9
|
@ -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,
|
||||
},
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
variable "num" {}
|
||||
|
||||
resource "aws_instance" "bar" {
|
||||
foo = "bar${count.index}"
|
||||
count = "${var.num}"
|
||||
foo = "bar${count.index}"
|
||||
}
|
||||
|
||||
output "output" {
|
||||
|
|
Loading…
Reference in New Issue