Skip to content

Commit

Permalink
Only need this one call, don't call the meta func
Browse files Browse the repository at this point in the history
  • Loading branch information
pselle committed Nov 22, 2019
1 parent 0cdeed1 commit 6e909e3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions states/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,8 @@ func (ms *Module) SetResourceInstanceCurrent(addr addrs.ResourceInstance, obj *R
// update the resource meta because we have a new instance, so EachMode may have changed
ms.SetResourceMeta(addr.Resource, eachModeForInstanceKey(addr.Key), provider)
}
// Call setResourceMeta one last time, with the resource's current EachMode, lest the
// provider has updated
ms.SetResourceMeta(addr.Resource, rs.EachMode, provider)
// Update the resource's ProviderConfig, in case the provider has updated
rs.ProviderConfig = provider
is.Current = obj
}

Expand Down

0 comments on commit 6e909e3

Please sign in to comment.