Don't import metadata, leads to race condition

This commit is contained in:
Ingo Oppermann
2024-07-19 16:01:50 +02:00
parent 308f008969
commit b160e604d2

View File

@@ -442,7 +442,7 @@ func (h *ClusterHandler) ProcessUpdate(c echo.Context) error {
} }
// Prefill the config with the current values // 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 { if err := util.ShouldBindJSON(c, &process); err != nil {
return api.Err(http.StatusBadRequest, "", "invalid JSON: %s", err.Error()) return api.Err(http.StatusBadRequest, "", "invalid JSON: %s", err.Error())