Skip to content

Commit

Permalink
ubuntu: updater log evaluation bug (#537)
Browse files Browse the repository at this point in the history
Without this the log would identify a failure but mis-report
the release as the tasks are performed in a goroutine and the
ctx wasn't recreated.

Signed-off-by: crozzy <[email protected]>
  • Loading branch information
crozzy authored Dec 7, 2021
1 parent 8b5a73d commit 00537e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ubuntu/updaterset.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func (f *Factory) UpdaterSet(ctx context.Context) (driver.UpdaterSet, error) {
return
default:
}
ctx = baggage.ContextWithValues(ctx, label.String("release", string(us[i].release)))
ctx := baggage.ContextWithValues(ctx, label.String("release", string(us[i].release)))
req, err := http.NewRequestWithContext(ctx, http.MethodHead, us[i].url, nil)
if err != nil {
zlog.Warn(ctx).Err(err).Msg("unable to create request")
Expand Down

0 comments on commit 00537e5

Please sign in to comment.