etcdctl member add -wjson --hex=true
does not output member IDs in hex
#19262
Labels
etcdctl member add -wjson --hex=true
does not output member IDs in hex
#19262
Bug report criteria
What happened?
I ran
etcdctl member add -w json --hex=true
, with the aim of extracting the newly added member ID for use withetcdctl member promote later
. However, the member ID was printed as decimal:This does not match the behaviour of
etcdctl member list -w json --hex=true
, which prints the member IDs in hexadecimal, compatible for use with otheretcdctl
commands.What did you expect to happen?
I expect
etcdctl member add ... -w json --hex=true
to print the IDs in hexadecimal, just likeetcdctl member list
does.How can we reproduce it (as minimally and precisely as possible)?
Run the following command (the new member doesn't actually ever have to join the cluster, it can be immediately deleted afterwards):
Anything else we need to know?
No response
Etcd version (please run commands below)
Etcd configuration (command line flags or environment variables)
paste your configuration here
Etcd debug information (please run commands below, feel free to obfuscate the IP address or FQDN in the output)
Relevant log output
The text was updated successfully, but these errors were encountered: