mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
Cleanup
This commit is contained in:
parent
9482bb8eb0
commit
ca9da51516
@ -180,13 +180,10 @@ const (
|
||||
func eachModeForInstanceKey(key addrs.InstanceKey) EachMode {
|
||||
switch key.(type) {
|
||||
case addrs.IntKey:
|
||||
fmt.Println("is int key")
|
||||
return EachList
|
||||
case addrs.StringKey:
|
||||
fmt.Println("is string key")
|
||||
return EachMap
|
||||
default:
|
||||
fmt.Println(key)
|
||||
if key == addrs.NoKey {
|
||||
return NoEach
|
||||
}
|
||||
|
@ -1,7 +1,6 @@
|
||||
package states
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"log"
|
||||
"sync"
|
||||
|
||||
@ -191,7 +190,6 @@ func (s *SyncState) SetResourceMeta(addr addrs.AbsResource, eachMode EachMode, p
|
||||
defer s.lock.Unlock()
|
||||
|
||||
ms := s.state.EnsureModule(addr.Module)
|
||||
fmt.Println("called from syncstate")
|
||||
ms.SetResourceMeta(addr.Resource, eachMode, provider)
|
||||
}
|
||||
|
||||
|
@ -577,8 +577,6 @@ func (d *evaluationStateData) getResourceInstancesAll(addr addrs.Resource, rng t
|
||||
})
|
||||
return cty.DynamicVal, diags
|
||||
}
|
||||
fmt.Println(addr.String(), "in getResourceAll")
|
||||
fmt.Println(rs.EachMode)
|
||||
|
||||
switch rs.EachMode {
|
||||
case states.NoEach:
|
||||
|
Loading…
Reference in New Issue
Block a user