-
Notifications
You must be signed in to change notification settings - Fork 9.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
etcdctl: add hex option for endpoint status #12110
etcdctl: add hex option for endpoint status #12110
Conversation
have you tested it out? example output? |
-bash-4.4# etcdctl endpoint status -w json --hex | jq Without hex: |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 21 days if no further activity occurs. Thank you for your contributions. |
LGTM. Can you change commit message to "etcdctl: add hex option for endpoint status"? |
…enisRazinkin/etcd into fix-issue-9975-endpoint-status
CI still failing. You need to merge the 3 commits into one. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 21 days if no further activity occurs. Thank you for your contributions. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the contribution.
var buffer bytes.Buffer | ||
var b []byte | ||
|
||
buffer.WriteString("[") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please avoid "hand-crafting" of JSON format as it might have subtle escaping consequences.
Please see discussion in:
#12595 (comment)
proc, err := spawnCmd(cmdArgs) | ||
if err != nil { | ||
cx.t.Fatalf("endpointStatusHexTest error (%v)", err) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please verify the test output (printed format).
This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 21 days if no further activity occurs. Thank you for your contributions. |
Please read https://github.com/etcd-io/etcd/blob/master/CONTRIBUTING.md#contribution-flow.