Fix provider related tests
This commit is contained in:
parent
e8aa5bfdc9
commit
61ce1cb3ad
|
@ -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
|
// update the resource meta because we have a new instance, so EachMode may have changed
|
||||||
ms.SetResourceMeta(addr.Resource, eachModeForInstanceKey(addr.Key), provider)
|
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
|
is.Current = obj
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue