Skip to content
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

why the 'key' and 'key_end' param in AuthRoleRevokePermissionRequest are string rather than bytes #9424

Closed
Revolution1 opened this issue Mar 12, 2018 · 2 comments

Comments

@Revolution1
Copy link

https://github.com/coreos/etcd/blob/4408ecede8903225128acee649f5e4e5ae6ed87a/etcdserver/etcdserverpb/rpc.proto#L988-L992

I noticed this abnormal type definition while im writing the etcd3-py client

In every other message 'key' and 'range_end' are bytes, except this one

I'm very curious about that

does that mean the functions of key-range (like prefix, all_keys) are limited here?

@hexfusion
Copy link
Contributor

/cc @mitake

@mitake
Copy link
Contributor

mitake commented Mar 14, 2018

@Revolution1 thanks for your report. The string type wouldn't have a rationale reason, I'll fix it soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

3 participants