Skip to content

Commit

Permalink
etcd2 compatible client
Browse files Browse the repository at this point in the history
  • Loading branch information
revol.cai committed May 24, 2018
1 parent 82342e2 commit b2f7379
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion etcd3/apis/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ def _get(self, url, **kwargs):
def _post(self, url, data=None, json=None, **kwargs):
raise NotImplementedError

def call_rpc(self, method, data=None, stream=False, **kwargs):
def call_rpc(self, method, data=None, stream=False, encode=True, raw=False, **kwargs):
raise NotImplementedError
2 changes: 1 addition & 1 deletion etcd3/baseclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def _modelizeResponseData(cls, method, data, decode=True):

@classmethod
def _modelizeStreamResponse(cls, method, resp, decode=True): # pragma: no cover
raise NotImplemented
raise NotImplementedError

def __enter__(self):
return self
Expand Down
2 changes: 1 addition & 1 deletion etcd3/swagger_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ def encode(self, data):
if 'properties' not in self._node:
return {}
rt = {}
for k, v in self.properties._items():
for k in self.properties._keys():
value = self.properties._get(k).encode(data.get(k))
if value is None:
continue
Expand Down

0 comments on commit b2f7379

Please sign in to comment.