From 9ea5d08ecdbb00f1d4702a60ccef0da95bac97c8 Mon Sep 17 00:00:00 2001 From: Anis Eleuch Date: Wed, 21 Feb 2024 00:02:35 +0100 Subject: [PATCH] site-repl: Fix endpoint in the error with unexpected deployment-id (#19086) --- cmd/site-replication.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/site-replication.go b/cmd/site-replication.go index 382dec852..5d71629be 100644 --- a/cmd/site-replication.go +++ b/cmd/site-replication.go @@ -3946,7 +3946,7 @@ func (c *SiteReplicationSys) EditPeerCluster(ctx context.Context, peer madmin.Pe return madmin.ReplicateEditStatus{}, errSRInvalidRequest(fmt.Errorf("Endpoint %s not reachable: %w", peer.Endpoint, err)) } if info.DeploymentID != v.DeploymentID { - return madmin.ReplicateEditStatus{}, errSRInvalidRequest(fmt.Errorf("Endpoint %s does not belong to deployment expected: %s (found %s) ", v.Endpoint, v.DeploymentID, info.DeploymentID)) + return madmin.ReplicateEditStatus{}, errSRInvalidRequest(fmt.Errorf("Endpoint %s does not belong to deployment expected: %s (found %s) ", peer.Endpoint, v.DeploymentID, info.DeploymentID)) } } }