Skip to content

Commit

Permalink
fixup LocalProviderConfig literal
Browse files Browse the repository at this point in the history
  • Loading branch information
jbardin committed Feb 13, 2020
1 parent d4d99be commit 099806c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions terraform/context_apply_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9692,9 +9692,9 @@ func TestContext2Apply_destroyWithProviders(t *testing.T) {
}

// correct the state
state.Modules["module.mod.module.removed"].Resources["aws_instance.child"].ProviderConfig = addrs.ProviderConfig{
Type: addrs.NewLegacyProvider("aws"),
Alias: "bar",
state.Modules["module.mod.module.removed"].Resources["aws_instance.child"].ProviderConfig = addrs.LocalProviderConfig{
LocalName: "aws",
Alias: "bar",
}.Absolute(addrs.RootModuleInstance)
if _, diags := ctx.Plan(); diags.HasErrors() {
t.Fatal(diags.Err())
Expand Down

0 comments on commit 099806c

Please sign in to comment.