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 {
|
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
|
||||||
}
|
}
|
||||||
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user