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 12, 2020
1 parent 3c4f4c6 commit 57027dc
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 @@ -9681,9 +9681,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() {
Expand Down

0 comments on commit 57027dc

Please sign in to comment.