[PATCH pynfs] Allow max_retries and delay_time to be passed as arguments to compound()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Bryan Schmersal <bryan@xxxxxxxxxxxxx>

Signed-off-by: Bryan Schmersal <bryan@xxxxxxxxxxxxx>
---
 nfs4.1/nfs4client.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/nfs4.1/nfs4client.py b/nfs4.1/nfs4client.py
index a180872..ba1e087 100644
--- a/nfs4.1/nfs4client.py
+++ b/nfs4.1/nfs4client.py
@@ -534,9 +534,9 @@ class SessionRecord(object):
         res = self.remove_seq_op(res)
         return res
 
-    def compound(self, ops, **kwargs):
-        max_retries = 10
-        delay_time = 1
+    def compound(self, ops, **kwargs):
+        max_retries = kwargs.pop('max_retries', 10)
+        delay_time = kwargs.pop('delay_time', 1)
         handle_state_errors = kwargs.pop("handle_state_errors", True)
         saved_kwargs = kwargs
         do_prepare = True
-- 
2.34.1





[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux