mirror of
https://github.com/minio/minio.git
synced 2025-01-23 20:53:18 -05:00
Enabled to send audit log while version deletion (#16954)
Signed-off-by: Shubhendu Ram Tripathi <shubhendu@minio.io>
This commit is contained in:
parent
f65cce4317
commit
5fe1b46bfd
@ -367,6 +367,16 @@ func deleteObjectVersions(ctx context.Context, o ObjectLayer, bucket string, toD
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
dobj := deletedObjs[i]
|
dobj := deletedObjs[i]
|
||||||
|
// Send audit for the lifecycle delete operation
|
||||||
|
auditLogLifecycle(
|
||||||
|
ctx,
|
||||||
|
ObjectInfo{
|
||||||
|
Bucket: bucket,
|
||||||
|
Name: dobj.ObjectName,
|
||||||
|
VersionID: dobj.VersionID,
|
||||||
|
},
|
||||||
|
ILMExpiry)
|
||||||
|
|
||||||
sendEvent(eventArgs{
|
sendEvent(eventArgs{
|
||||||
EventName: event.ObjectRemovedDelete,
|
EventName: event.ObjectRemovedDelete,
|
||||||
BucketName: bucket,
|
BucketName: bucket,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user