Skip to content

Commit

Permalink
fix (maestro): reset error message when sink update
Browse files Browse the repository at this point in the history
  • Loading branch information
etaques committed Oct 4, 2023
1 parent 78ab318 commit f922b06
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion maestro/deployment/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,11 +147,12 @@ func (d *deploymentService) UpdateDeployment(ctx context.Context, deployment *De
if err != nil {
d.logger.Warn("could not stop running collector, will try to update anyway", zap.Error(err))
}
err = deployment.Merge(*got)
err = got.Merge(*deployment)
if err != nil {
d.logger.Error("error during merge of deployments", zap.Error(err))
return err
}
deployment = got
deployment.LastCollectorStopTime = &now
codedConfig, err := d.encodeConfig(deployment)
if err != nil {
Expand Down

0 comments on commit f922b06

Please sign in to comment.