From 923f9f226d3b16e9eaf379ba14b9aeb0691e6b8b Mon Sep 17 00:00:00 2001 From: Pam Selle <204372+pselle@users.noreply.github.com> Date: Wed, 7 Oct 2020 10:57:25 -0400 Subject: [PATCH] Update some comments in states package --- states/module.go | 8 +++----- states/sync.go | 5 ++--- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/states/module.go b/states/module.go index 760625e056..fbef01c7a9 100644 --- a/states/module.go +++ b/states/module.go @@ -76,16 +76,14 @@ func (ms *Module) RemoveResource(addr addrs.Resource) { // SetResourceInstanceCurrent saves the given instance object as the current // generation of the resource instance with the given address, simultaneously -// updating the recorded provider configuration address, dependencies, and -// resource EachMode. +// updating the recorded provider configuration address and dependencies. // // Any existing current instance object for the given resource is overwritten. // Set obj to nil to remove the primary generation object altogether. If there // are no deposed objects then the instance will be removed altogether. // -// The provider address and "each mode" are resource-wide settings and so they -// are updated for all other instances of the same resource as a side-effect of -// this call. +// The provider address is a resource-wide setting and is updated for all other +// instances of the same resource as a side-effect of this call. func (ms *Module) SetResourceInstanceCurrent(addr addrs.ResourceInstance, obj *ResourceInstanceObjectSrc, provider addrs.AbsProviderConfig) { rs := ms.Resource(addr.Resource) // if the resource is nil and the object is nil, don't do anything! diff --git a/states/sync.go b/states/sync.go index d0923b1500..610fc07aa0 100644 --- a/states/sync.go +++ b/states/sync.go @@ -316,9 +316,8 @@ func (s *SyncState) MaybeFixUpResourceInstanceAddressForCount(addr addrs.ConfigR // concurrently mutated during this call, but may be freely used again once // this function returns. // -// The provider address and "each mode" are resource-wide settings and so they -// are updated for all other instances of the same resource as a side-effect of -// this call. +// The provider address is a resource-wide settings and is updated +// for all other instances of the same resource as a side-effect of this call. // // If the containing module for this resource or the resource itself are not // already tracked in state then they will be added as a side-effect.