Skip to content

Commit 544c3d6

Browse files
committed
fix logic on validation
1 parent 99194db commit 544c3d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/bus/message_pipe.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ func (p *MessagePipe) createDataPlaneResponse(correlationID string, status mpi.C
359359
func validateLabels(labels map[string]any) bool {
360360
for _, value := range labels {
361361
if val, ok := value.(string); ok {
362-
if config.ValidateLabel(val) {
362+
if !config.ValidateLabel(val) {
363363
return false
364364
}
365365
}

0 commit comments

Comments
 (0)