mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
EvalReduceDiff: removing unused struct field
This commit is contained in:
parent
f835841c28
commit
ff5d78ff5a
@ -793,7 +793,6 @@ func (n *EvalReduceDiff) Eval(ctx EvalContext) (interface{}, error) {
|
|||||||
// change for a particular resource instance object.
|
// change for a particular resource instance object.
|
||||||
type EvalReadDiff struct {
|
type EvalReadDiff struct {
|
||||||
Addr addrs.ResourceInstance
|
Addr addrs.ResourceInstance
|
||||||
DeposedKey states.DeposedKey
|
|
||||||
ProviderSchema **ProviderSchema
|
ProviderSchema **ProviderSchema
|
||||||
Change **plans.ResourceInstanceChange
|
Change **plans.ResourceInstanceChange
|
||||||
}
|
}
|
||||||
@ -810,9 +809,6 @@ func (n *EvalReadDiff) Eval(ctx EvalContext) (interface{}, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
gen := states.CurrentGen
|
gen := states.CurrentGen
|
||||||
if n.DeposedKey != states.NotDeposed {
|
|
||||||
gen = n.DeposedKey
|
|
||||||
}
|
|
||||||
csrc := changes.GetResourceInstanceChange(addr, gen)
|
csrc := changes.GetResourceInstanceChange(addr, gen)
|
||||||
if csrc == nil {
|
if csrc == nil {
|
||||||
log.Printf("[TRACE] EvalReadDiff: No planned change recorded for %s", addr)
|
log.Printf("[TRACE] EvalReadDiff: No planned change recorded for %s", addr)
|
||||||
|
Loading…
Reference in New Issue
Block a user