Skip to content

Commit

Permalink
lxd: Send image-retrieved lifecycle event when rootfs file is present.
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Laing <[email protected]>
  • Loading branch information
markylaing committed Jul 12, 2024
1 parent 2426d4d commit b4657aa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lxd/images.go
Original file line number Diff line number Diff line change
Expand Up @@ -4178,6 +4178,9 @@ func imageExport(d *Daemon, r *http.Request) response.Response {
files[1].Path = rootfsPath
files[1].Filename = filename

requestor := request.CreateRequestor(r)
s.Events.SendLifecycle(projectName, lifecycle.ImageRetrieved.Event(imgInfo.Fingerprint, projectName, requestor, nil))

return response.FileResponse(r, files, nil)
}

Expand Down

0 comments on commit b4657aa

Please sign in to comment.