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

This commit is contained in:
屈轩
2025-10-16 14:30:41 +08:00
committed by GitHub
parent 5b24d3bb15
commit 4f9650fc9b
+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
}