mirror of
https://github.com/datarhei/core.git
synced 2025-10-07 08:51:04 +08:00
Don't import metadata, leads to race condition
This commit is contained in:
@@ -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())
|
||||
|
Reference in New Issue
Block a user