core: fix buggy test TestContext2Input_providerMulti

This was trying to test gathering input from a default and an alias
provider configuration, but it was incorrectly setting the provider ref
on the instance that was supposed to belong to the alias. This was working
before because Terraform would gather input from the aliased provider
anyway, but now the invalid "alias" argument in the resource is producing
a validation error.

This doesn't actually make the test work again yet, because we still have
provider input disabled at this time, pending a forthcoming change to
how provider input is handled.
This commit is contained in:
Martin Atkins 2018-05-24 18:24:56 -07:00
parent f65f51c023
commit b6fe705985
1 changed files with 2 additions and 2 deletions

View File

@ -1,9 +1,9 @@
provider "aws" { provider "aws" {
alias = "east" alias = "east"
} }
resource "aws_instance" "foo" { resource "aws_instance" "foo" {
alias = "east" provider = aws.east
} }
resource "aws_instance" "bar" {} resource "aws_instance" "bar" {}