From e4d2469698f4bf07a1bea2f3f18f10d7aa28408d Mon Sep 17 00:00:00 2001 From: Pam Selle <204372+pselle@users.noreply.github.com> Date: Wed, 4 Dec 2019 12:08:34 -0500 Subject: [PATCH] Update comment --- states/module.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/states/module.go b/states/module.go index 4b93af4eb..ec177edf3 100644 --- a/states/module.go +++ b/states/module.go @@ -76,7 +76,7 @@ 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, simulataneously +// generation of the resource instance with the given address, simultaneously // updating the recorded provider configuration address, dependencies, and // resource EachMode. // @@ -106,8 +106,7 @@ func (ms *Module) SetResourceInstanceCurrent(addr addrs.ResourceInstance, obj *R // check for an existing resource, now that we've ensured that rs.Instances is more than 0/not nil is := rs.Instance(addr.Key) if is == nil { - // if there is no instance, but the resource exists and has other instances, - // be chill, just return + // if there is no instance on the resource with this address and obj is nil, return and change nothing return } // if we have an instance, update the current