Skip to content

Commit

Permalink
[Fleet] Fix updating upgrade details during checkin (#3084)
Browse files Browse the repository at this point in the history
  • Loading branch information
nchaulet authored Nov 7, 2023
1 parent c46d877 commit 464141d
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions internal/pkg/api/handleCheckin.go
Original file line number Diff line number Diff line change
Expand Up @@ -452,13 +452,8 @@ func (ct *CheckinT) processUpgradeDetails(ctx context.Context, agent *model.Agen
}
vSpan.End()

// marshal and update agent doc with details
p, err := json.Marshal(details)
if err != nil {
return err
}
doc := bulk.UpdateFields{
dl.FieldUpgradeDetails: p,
dl.FieldUpgradeDetails: details,
}
body, err := doc.Marshal()
if err != nil {
Expand Down

0 comments on commit 464141d

Please sign in to comment.