From b4657aab4a4c8d984d9937991d3b2f9f9f6c8fd0 Mon Sep 17 00:00:00 2001 From: Mark Laing Date: Fri, 12 Jul 2024 13:30:15 +0100 Subject: [PATCH] lxd: Send image-retrieved lifecycle event when rootfs file is present. Signed-off-by: Mark Laing --- lxd/images.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lxd/images.go b/lxd/images.go index 2ff9e781dc61..5680ee52019c 100644 --- a/lxd/images.go +++ b/lxd/images.go @@ -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) }