Skip to content

Commit 5a77256

Browse files
committed
fixup! fix: Propagate wrapped handler response
1 parent e7ac3b5 commit 5a77256

File tree

1 file changed

+2
-2
lines changed
  • common/pkg/capi/clustertopology/handlers/mutation

1 file changed

+2
-2
lines changed

common/pkg/capi/clustertopology/handlers/mutation/meta.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ func (mgp metaGeneratePatches) GeneratePatches(
4040
if wrappedResp.Message != "" {
4141
resp.Message = strings.TrimPrefix(resp.Message+"\n"+wrappedResp.Message, "\n")
4242
}
43-
if wrappedResp.Status != runtimehooksv1.ResponseStatusSuccess {
44-
wrappedResp.Status = runtimehooksv1.ResponseStatusSuccess
43+
resp.Status = wrappedResp.Status
44+
if resp.Status == runtimehooksv1.ResponseStatusFailure {
4545
return
4646
}
4747
}

0 commit comments

Comments
 (0)