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

This commit is contained in:
屈轩
2025-10-16 14:30:48 +08:00
committed by GitHub
parent f5a6465629
commit 584b3291cd
+4
View File
@@ -2121,6 +2121,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
}