fix(glance): add notify for image create (#23555)

This commit is contained in:
屈轩
2025-10-16 14:31:02 +08:00
committed by GitHub
parent fedf62f75b
commit b999ad72ac
+4
View File
@@ -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
}