Fix idempotency issue for network modules. (#32838)

After the connection refactor if response value returned from
the remote device is empty in that case an `ok` return value is send
to module side code. To avoid this do not overwrite the empty response
received from remote device in `jsonrpc` reply.
pull/32899/head
Ganesh Nalawade 7 years ago committed by Ricardo Carrillo Cruz
parent 11de330372
commit 414eaefcb5

@ -83,7 +83,7 @@ class JsonRpcServer(object):
def response(self, result=None): def response(self, result=None):
response = self.header() response = self.header()
response['result'] = result or 'ok' response['result'] = result
return response return response
def error(self, code, message, data=None): def error(self, code, message, data=None):

Loading…
Cancel
Save