Skip to content

Commit

Permalink
fix npe in the log (#242)
Browse files Browse the repository at this point in the history
  • Loading branch information
SparkYuan committed Feb 10, 2023
1 parent edbc8f8 commit 3f37ce4
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 @@ -167,7 +167,7 @@ func (rn *ResourceNode) applyResource(operation *opsmodels.Operation, priorState
if priorState == nil {
response := rt.Import(context.Background(), &runtime.ImportRequest{PlanResource: planedState})
s = response.Status
log.Debugf("import resource:%s, state:%v", planedState.ID, s.String())
log.Debugf("import resource:%s, state:%v", planedState.ID, jsonutil.Marshal2String(s))
res = response.Resource
} else {
res = priorState
Expand Down

0 comments on commit 3f37ce4

Please sign in to comment.