mirror of https://github.com/hashicorp/consul
4137d06f9f
When node name contains vertical bar symbol some commands output is garbled because `|` is used as a delimiter in `columnize.SimpleFormat`. This commit changes format string to use `\x1f` - ASCII unit separator[1] as a delimiter and also adds test to cover this case. Affected commands: * `consul catalog nodes` * `consul members` * `consul operator raft list-peers` * `consul intention get` Fixes #3951. [1]: https://en.wikipedia.org/wiki/Delimiter#Solutions |
||
---|---|---|
.. | ||
acl | ||
agent | ||
catalog | ||
config | ||
connect | ||
debug | ||
event | ||
exec | ||
flags | ||
forceleave | ||
helpers | ||
info | ||
intention | ||
join | ||
keygen | ||
keyring | ||
kv | ||
leave | ||
lock | ||
login | ||
logout | ||
maint | ||
members | ||
monitor | ||
operator | ||
reload | ||
rtt | ||
services | ||
snapshot | ||
tls | ||
validate | ||
version | ||
watch | ||
commands_oss.go | ||
registry.go |