Skip to content
This repository has been archived by the owner on Oct 7, 2023. It is now read-only.

zketcd: don't crash on getting root directory #87

Merged
merged 2 commits into from
Nov 3, 2017

Conversation

heyitsanthony
Copy link
Contributor

/cc @tsuraan

@tsuraan
Copy link

tsuraan commented Nov 3, 2017

Yeah, that works better than mine; the python client actually returns None as the value, which seems more appropriate.

Is rootPath guaranteed to be the only node that behaves this way? Would it be better to check the length of Responses and Kvs to ensure an index out of range panic never happens?

@heyitsanthony
Copy link
Contributor Author

It should only happen for the root node; there are a few special cases for the root node already.

@tsuraan
Copy link

tsuraan commented Nov 3, 2017

Okay, cool. I'll close my request.

@xiang90
Copy link
Contributor

xiang90 commented Nov 3, 2017

lgtm

@xiang90 xiang90 merged commit ffbe4da into etcd-io:master Nov 3, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants