Skip to content

Commit

Permalink
fix: inaccurate action type when a live resource has been deleted (#771)
Browse files Browse the repository at this point in the history
  • Loading branch information
SparkYuan committed Jan 31, 2024
1 parent 0be417b commit 0b31df3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/engine/operation/graph/resource_node.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ func (rn *ResourceNode) computeActionType(
case opsmodels.Apply, opsmodels.ApplyPreview:
if planedResource == nil {
rn.Action = opsmodels.Delete
} else if priorResource == nil && liveResource == nil {
} else if liveResource == nil {
rn.Action = opsmodels.Create
} else {
// Dry run to fetch predictable resource
Expand Down

0 comments on commit 0b31df3

Please sign in to comment.