diff --git a/pkg/jsonpatch/jsonpatch.go b/pkg/jsonpatch/jsonpatch.go index 850256b..5746adb 100644 --- a/pkg/jsonpatch/jsonpatch.go +++ b/pkg/jsonpatch/jsonpatch.go @@ -57,7 +57,7 @@ func GenerateJsonPath(index int, remove bool, oldConditions, newConditions *core // If the index is not -1, update the value of the JsonPatch object based on the oldConditions parameter. if index != -1 { if newConditions.Message == "" { - jsonPatch.Value.Message = oldConditions.Reason + jsonPatch.Value.Message = oldConditions.Message } if newConditions.Reason == "" {