Fix provider related tests

This commit is contained in:
Pam Selle 2019-11-22 16:40:24 -05:00
parent e8aa5bfdc9
commit 61ce1cb3ad
1 changed files with 3 additions and 0 deletions

View File

@ -135,6 +135,9 @@ 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)
is.Current = obj
}