mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-21 14:41:09 +02:00
Fix raft config response (#6975)
This commit is contained in:
parent
7e230684aa
commit
21b5ec5dc3
@ -542,7 +542,7 @@ func (b *RaftBackend) GetConfiguration(ctx context.Context) (*RaftConfigurationR
|
|||||||
Address: string(server.Address),
|
Address: string(server.Address),
|
||||||
Leader: server.Address == b.raft.Leader(),
|
Leader: server.Address == b.raft.Leader(),
|
||||||
Voter: server.Suffrage == raft.Voter,
|
Voter: server.Suffrage == raft.Voter,
|
||||||
ProtocolVersion: string(raft.ProtocolVersionMax),
|
ProtocolVersion: strconv.Itoa(raft.ProtocolVersionMax),
|
||||||
}
|
}
|
||||||
config.Servers = append(config.Servers, entry)
|
config.Servers = append(config.Servers, entry)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user