Browse Source

use EqualPartitions

Signed-off-by: acpana <8968914+acpana@users.noreply.github.com>
pull/13929/head
acpana 2 years ago
parent
commit
6033584349
No known key found for this signature in database
GPG Key ID: 21CC0F2B42CEA01D
  1. 2
      agent/rpc/peering/service.go

2
agent/rpc/peering/service.go

@ -408,7 +408,7 @@ func (s *Server) validatePeeringInPartition(remotePeerID, partition string) erro
return fmt.Errorf("cannot read peering by ID: %w", err)
}
if peering != nil && peering.GetPartition() == partition {
if peering != nil && acl.EqualPartitions(peering.GetPartition(), partition) {
return fmt.Errorf("cannot create a peering within the same partition (ENT) or cluster (OSS)")
}

Loading…
Cancel
Save