From b999ad72ac899eaa5bd1831b3f712a1dc63eac10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B1=88=E8=BD=A9?= Date: Thu, 16 Oct 2025 14:31:02 +0800 Subject: [PATCH] fix(glance): add notify for image create (#23555) --- pkg/image/models/images.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/image/models/images.go b/pkg/image/models/images.go index da2b637933..92e7679740 100644 --- a/pkg/image/models/images.go +++ b/pkg/image/models/images.go @@ -2102,6 +2102,10 @@ func (img *SImage) Pipeline(ctx context.Context, userCred mcclient.TokenCredenti } notifyclient.SystemNotifyWithCtx(ctx, notify.NotifyPriorityNormal, notifyclient.IMAGE_ACTIVED, kwargs) notifyclient.NotifyImportantWithCtx(ctx, []string{userCred.GetUserId()}, false, notifyclient.IMAGE_ACTIVED, kwargs) + notifyclient.EventNotify(ctx, userCred, notifyclient.SEventNotifyParam{ + Obj: img, + Action: notifyclient.ActionCreate, + }) } return nil }