From b160e604d286942700b64ad780d6f582561b9370 Mon Sep 17 00:00:00 2001 From: Ingo Oppermann Date: Fri, 19 Jul 2024 16:01:50 +0200 Subject: [PATCH] Don't import metadata, leads to race condition --- http/handler/api/cluster_process.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http/handler/api/cluster_process.go b/http/handler/api/cluster_process.go index cc18d693..8c531810 100644 --- a/http/handler/api/cluster_process.go +++ b/http/handler/api/cluster_process.go @@ -442,7 +442,7 @@ func (h *ClusterHandler) ProcessUpdate(c echo.Context) error { } // Prefill the config with the current values - process.Unmarshal(current.Config, current.Metadata) + process.Unmarshal(current.Config, nil) if err := util.ShouldBindJSON(c, &process); err != nil { return api.Err(http.StatusBadRequest, "", "invalid JSON: %s", err.Error())