mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
Merge pull request #17513 from hashicorp/jbardin/GH-17509
Check for nil config in node_resource_refresh
This commit is contained in:
commit
f825a2118b
@ -213,10 +213,16 @@ func (n *NodeRefreshableManagedResourceInstance) evalTreeManagedResourceNoState(
|
||||
// Determine the dependencies for the state.
|
||||
stateDeps := n.StateReferences()
|
||||
|
||||
// n.Config can be nil if the config and state don't match
|
||||
var raw *config.RawConfig
|
||||
if n.Config != nil {
|
||||
raw = n.Config.RawConfig.Copy()
|
||||
}
|
||||
|
||||
return &EvalSequence{
|
||||
Nodes: []EvalNode{
|
||||
&EvalInterpolate{
|
||||
Config: n.Config.RawConfig.Copy(),
|
||||
Config: raw,
|
||||
Resource: resource,
|
||||
Output: &resourceConfig,
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user