diff --git a/lxd/images.go b/lxd/images.go index 55bbbd4b35d2..f2b100c58154 100644 --- a/lxd/images.go +++ b/lxd/images.go @@ -839,6 +839,13 @@ func getImgPostInfo(s *state.State, r *http.Request, builddir string, project st } } + unlock, err := imageOperationLock(info.Fingerprint) + if err != nil { + return nil, err + } + + defer unlock() + info.Architecture = imageMeta.Architecture info.CreatedAt = time.Unix(imageMeta.CreationDate, 0)