From 0afe8c14ee5fa0576cf98983328066a341697487 Mon Sep 17 00:00:00 2001 From: Michael Klein Date: Tue, 11 Oct 2022 15:02:22 +0200 Subject: [PATCH] pass dc/partition when normalizing peerings --- ui/packages/consul-ui/app/services/repository/peer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/packages/consul-ui/app/services/repository/peer.js b/ui/packages/consul-ui/app/services/repository/peer.js index 77cf9f17db..b650278548 100644 --- a/ui/packages/consul-ui/app/services/repository/peer.js +++ b/ui/packages/consul-ui/app/services/repository/peer.js @@ -55,7 +55,7 @@ export default class PeerService extends RepositoryService { }, body: body.map((item) => { return cache( - normalizePeerPayload(item), + normalizePeerPayload(item, dc, partition), (uri) => uri`peer:///${partition}/${ns}/${dc}/peer/${item.Name}` ); }), @@ -92,7 +92,7 @@ export default class PeerService extends RepositoryService { uri: uri, }, body: cache( - normalizePeerPayload(body), + normalizePeerPayload(body, dc, partition), (uri) => uri`peer:///${partition}/${ns}/${dc}/peer/${body.Name}` ), };