set correct Host: value for replication event notification (#16984)

This commit is contained in:
Harshavardhana
2023-04-06 10:20:53 -07:00
committed by GitHub
parent 8625a9dbb3
commit c06e0bfef9
5 changed files with 54 additions and 28 deletions

View File

@@ -1077,8 +1077,8 @@ func (i *scannerItem) applyVersionActions(ctx context.Context, o ObjectLayer, fi
Object: ObjectInfo{
Name: i.objectPath(),
},
UserAgent: "scanner",
Host: globalMinioHost,
UserAgent: "Internal: [Scanner]",
Host: globalLocalNodeName,
RespElements: map[string]string{"x-minio-versions": strconv.Itoa(len(fivs))},
})
}
@@ -1203,7 +1203,8 @@ func applyExpiryOnNonTransitionedObjects(ctx context.Context, objLayer ObjectLay
EventName: eventName,
BucketName: obj.Bucket,
Object: obj,
Host: "Internal: [ILM-Expiry]",
UserAgent: "Internal: [ILM-Expiry]",
Host: globalLocalNodeName,
})
return true