Skip to content

Commit

Permalink
fix: a npe panic when deleting a resource failed (#507)
Browse files Browse the repository at this point in the history
  • Loading branch information
SparkYuan authored Sep 5, 2023
1 parent eba983b commit 31b6eb7
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 @@ -235,7 +235,7 @@ func (rn *ResourceNode) applyResource(operation *opsmodels.Operation, prior, pla
response := rt.Delete(context.Background(), &runtime.DeleteRequest{Resource: prior, Stack: operation.Stack})
s = response.Status
if s != nil {
log.Debugf("delete resource:%s, resource: %v", planed.ID, s.String())
log.Debugf("delete resource:%s, resource: %v", prior.ID, s.String())
}
case opsmodels.UnChanged:
log.Infof("planed resource and live resource are equal")
Expand Down

0 comments on commit 31b6eb7

Please sign in to comment.