mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-03 01:03:09 +00:00
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.
This commit is contained in:
committed by
Ricardo Carrillo Cruz
parent
11de330372
commit
414eaefcb5
@@ -83,7 +83,7 @@ class JsonRpcServer(object):
|
||||
|
||||
def response(self, result=None):
|
||||
response = self.header()
|
||||
response['result'] = result or 'ok'
|
||||
response['result'] = result
|
||||
return response
|
||||
|
||||
def error(self, code, message, data=None):
|
||||
|
||||
Reference in New Issue
Block a user