Only need this one call, don't call the meta func

This commit is contained in:
Pam Selle 2019-11-22 16:57:21 -05:00
parent 61ce1cb3ad
commit 19b408e053
1 changed files with 2 additions and 3 deletions

View File

@ -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
}