Skip to content

Commit

Permalink
daemon: set context in snap instruction for many-snap operation
Browse files Browse the repository at this point in the history
Signed-off-by: Maciej Borzecki <[email protected]>
  • Loading branch information
bboozzoo committed Jun 26, 2024
1 parent d57db28 commit a3811bb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions daemon/api_snaps.go
Original file line number Diff line number Diff line change
Expand Up @@ -644,6 +644,7 @@ func snapOpMany(c *Command, r *http.Request, user *auth.UserState) Response {
if err := decoder.Decode(&inst); err != nil {
return BadRequest("cannot decode request body into snap instruction: %v", err)
}
inst.ctx = r.Context()

// TODO: inst.Amend, etc?
if inst.Channel != "" || !inst.Revision.Unset() || inst.DevMode || inst.JailMode || inst.CohortKey != "" || inst.LeaveCohort || inst.Prefer {
Expand Down

0 comments on commit a3811bb

Please sign in to comment.