We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0a46888 + 1bdd819 commit 27aecbeCopy full SHA for 27aecbe
1 file changed
src/etcd/__init__.py
@@ -46,8 +46,8 @@ def __init__(self, action=None, node=None, prevNode=None, **kwdargs):
46
47
def parse_headers(self, response):
48
headers = response.getheaders()
49
- self.etcd_index = headers.get('x-etcd-index', 1)
50
- self.raft_index = headers.get('x-raft-index', 1)
+ self.etcd_index = int(headers.get('x-etcd-index', 1))
+ self.raft_index = int(headers.get('x-raft-index', 1))
51
52
def get_subtree(self, leaves_only=False):
53
"""
0 commit comments