mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-28 01:41:48 -06:00
core: ScaleIn should have been ScaleOut
We are actually acting on/fixing the scale-out here (ie: new child node from count with no state), not scale-in.
This commit is contained in:
parent
f249386c8a
commit
42ebbc6e0e
@ -94,7 +94,7 @@ func (n *NodeRefreshableManagedResourceInstance) EvalTree() EvalNode {
|
||||
switch mode := n.Addr.Mode; mode {
|
||||
case config.ManagedResourceMode:
|
||||
if n.ResourceState == nil {
|
||||
return n.evalTreeManagedScaleInResource()
|
||||
return n.evalTreeManagedScaleOutResource()
|
||||
}
|
||||
return n.evalTreeManagedResource()
|
||||
|
||||
@ -173,7 +173,7 @@ func (n *NodeRefreshableManagedResourceInstance) evalTreeManagedResource() EvalN
|
||||
}
|
||||
}
|
||||
|
||||
func (n *NodeRefreshableManagedResourceInstance) evalTreeManagedScaleInResource() EvalNode {
|
||||
func (n *NodeRefreshableManagedResourceInstance) evalTreeManagedScaleOutResource() EvalNode {
|
||||
// Declare a bunch of variables that are used for state during
|
||||
// evaluation. Most of this are written to by-address below.
|
||||
var provider ResourceProvider
|
||||
|
Loading…
Reference in New Issue
Block a user