-
Notifications
You must be signed in to change notification settings - Fork 9.8k
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_API=3 etcdctl lease grant <TTL> -w json does not return json #7783
Comments
Maybe? Just shooting atm, did not try to compile it and run it. if _, ok := display.(*simplePrinter); ok {
fmt.Printf("lease %016x granted with TTL(%ds)\n", resp.ID, resp.TTL)
} else {
display.Get(*resp)
} |
Ok, the LeaseGrantResponse needs to implemented the interface. |
Yeah, @heyitsanthony do you remember why some lease RPCs are missing from |
@gyuho lease commands weren't picked up during the printerization of the commands. They should be displayable as json since they map to RPCs. |
heyitsanthony
pushed a commit
to heyitsanthony/etcd
that referenced
this issue
Apr 20, 2017
heyitsanthony
pushed a commit
to heyitsanthony/etcd
that referenced
this issue
Apr 20, 2017
gyuho
pushed a commit
that referenced
this issue
Apr 20, 2017
Thanks guys |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When creating a lease with json as the output format, the output is not printed in json. Instead, it is printed as a simple format.
Affected version: etcd-3.1.3
The text was updated successfully, but these errors were encountered: