Enabled to send audit log while version deletion (#16954)

Signed-off-by: Shubhendu Ram Tripathi <shubhendu@minio.io>
This commit is contained in:
Shubhendu 2023-04-04 00:28:04 +05:30 committed by GitHub
parent f65cce4317
commit 5fe1b46bfd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -367,6 +367,16 @@ func deleteObjectVersions(ctx context.Context, o ObjectLayer, bucket string, toD
continue
}
dobj := deletedObjs[i]
// Send audit for the lifecycle delete operation
auditLogLifecycle(
ctx,
ObjectInfo{
Bucket: bucket,
Name: dobj.ObjectName,
VersionID: dobj.VersionID,
},
ILMExpiry)
sendEvent(eventArgs{
EventName: event.ObjectRemovedDelete,
BucketName: bucket,