Saggi Mizrahi has uploaded a new change for review. Change subject: jsonrpc: Remove unecessary check ......................................................................
jsonrpc: Remove unecessary check Change-Id: Ic1c04d3ba13b369c850370b9c5ffaf68da7328a7 Signed-off-by: Saggi Mizrahi <[email protected]> --- M vdsm_api/jsonrpc/client.py 1 file changed, 1 insertion(+), 4 deletions(-) git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/23/11623/1 diff --git a/vdsm_api/jsonrpc/client.py b/vdsm_api/jsonrpc/client.py index fe5c0bd..797fafe 100644 --- a/vdsm_api/jsonrpc/client.py +++ b/vdsm_api/jsonrpc/client.py @@ -120,13 +120,10 @@ if not self._msngr.incoming: raise socket.timeout() - if self._msngr.incoming > 1: - raise Exception("Got %d repsones instead of 1" % - self._msngr.incoming) - msg = proton.Message() t = self._msngr.get(msg) self._msngr.settle(t) + return msg.body def close(self): -- To view, visit http://gerrit.ovirt.org/11623 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ic1c04d3ba13b369c850370b9c5ffaf68da7328a7 Gerrit-PatchSet: 1 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Saggi Mizrahi <[email protected]> _______________________________________________ vdsm-patches mailing list [email protected] https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches
