mirror of
https://github.com/status-im/consul.git
synced 2025-02-03 09:24:25 +00:00
ui: Don't automatically move rz read-replicas out of the rz (#12740)
This commit is contained in:
parent
032f64469c
commit
4c8c163a48
@ -130,16 +130,9 @@ export default class DcService extends RepositoryService {
|
|||||||
// convert the string[] to Server[]
|
// convert the string[] to Server[]
|
||||||
Servers: value.Servers.reduce((prev, item) => {
|
Servers: value.Servers.reduce((prev, item) => {
|
||||||
const server = body.Servers[item];
|
const server = body.Servers[item];
|
||||||
// TODO: It is not currently clear whether we should be
|
|
||||||
// taking ReadReplicas out of the RedundancyZones when we
|
|
||||||
// encounter one in a Zone once this is cleared up either
|
|
||||||
// way we can either remove this comment or make any
|
|
||||||
// necessary amends here
|
|
||||||
if(!server.ReadReplica) {
|
|
||||||
// keep a record of things
|
// keep a record of things
|
||||||
grouped.push(server.ID);
|
grouped.push(server.ID);
|
||||||
prev.push(server);
|
prev.push(server);
|
||||||
}
|
|
||||||
return prev;
|
return prev;
|
||||||
}, []),
|
}, []),
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user