Skip to content

Commit

Permalink
fix: reset $kusion.path ref to the original value when replace faild …
Browse files Browse the repository at this point in the history
…in the preview (#1155)
  • Loading branch information
SparkYuan committed Jun 11, 2024
1 parent 2bda750 commit 1df3c90
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/engine/operation/graph/resource_node.go
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,9 @@ var implicitReplaceFun = func(
msg := fmt.Sprintf("can't find specified value in resource:%s by ref:%s", key, refPath)
return reflect.Value{}, v1.NewErrorStatusWithMsg(v1.IllegalManifest, msg)
} else {
log.Infof("can't find specified value in resource:%s by ref:%s with force equals false", key, refPath)
// reset to the original ref value
valueMap = ImplicitRefPrefix + refPath
break
}
}
Expand Down

0 comments on commit 1df3c90

Please sign in to comment.