Yeela Kaplan has uploaded a new change for review.

Change subject: jsonrpc: add a default timeout for client call
......................................................................

jsonrpc: add a default timeout for client call

Change-Id: Iaf87de694c70260edba57b16ad4c12a8082a9346
Signed-off-by: Yeela Kaplan <[email protected]>
---
M lib/yajsonrpc/__init__.py
1 file changed, 2 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/94/41894/1

diff --git a/lib/yajsonrpc/__init__.py b/lib/yajsonrpc/__init__.py
index e9f133b..b0e1563 100644
--- a/lib/yajsonrpc/__init__.py
+++ b/lib/yajsonrpc/__init__.py
@@ -318,9 +318,9 @@
 
         return resp.result
 
-    def call(self, *reqs):
+    def call(self, timeout=CALL_TIMEOUT, *reqs):
         call = self.call_async(*reqs)
-        call.wait()
+        call.wait(timeout)
         return call.responses
 
     def call_async(self, *reqs):


-- 
To view, visit https://gerrit.ovirt.org/41894
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Iaf87de694c70260edba57b16ad4c12a8082a9346
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Yeela Kaplan <[email protected]>
_______________________________________________
vdsm-patches mailing list
[email protected]
https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches

Reply via email to