This commit is contained in:
Pam Selle 2019-11-22 13:59:12 -05:00
parent 9482bb8eb0
commit ca9da51516
3 changed files with 0 additions and 7 deletions

View File

@ -180,13 +180,10 @@ const (
func eachModeForInstanceKey(key addrs.InstanceKey) EachMode { func eachModeForInstanceKey(key addrs.InstanceKey) EachMode {
switch key.(type) { switch key.(type) {
case addrs.IntKey: case addrs.IntKey:
fmt.Println("is int key")
return EachList return EachList
case addrs.StringKey: case addrs.StringKey:
fmt.Println("is string key")
return EachMap return EachMap
default: default:
fmt.Println(key)
if key == addrs.NoKey { if key == addrs.NoKey {
return NoEach return NoEach
} }

View File

@ -1,7 +1,6 @@
package states package states
import ( import (
"fmt"
"log" "log"
"sync" "sync"
@ -191,7 +190,6 @@ func (s *SyncState) SetResourceMeta(addr addrs.AbsResource, eachMode EachMode, p
defer s.lock.Unlock() defer s.lock.Unlock()
ms := s.state.EnsureModule(addr.Module) ms := s.state.EnsureModule(addr.Module)
fmt.Println("called from syncstate")
ms.SetResourceMeta(addr.Resource, eachMode, provider) ms.SetResourceMeta(addr.Resource, eachMode, provider)
} }

View File

@ -577,8 +577,6 @@ func (d *evaluationStateData) getResourceInstancesAll(addr addrs.Resource, rng t
}) })
return cty.DynamicVal, diags return cty.DynamicVal, diags
} }
fmt.Println(addr.String(), "in getResourceAll")
fmt.Println(rs.EachMode)
switch rs.EachMode { switch rs.EachMode {
case states.NoEach: case states.NoEach: