diff mbox series

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

Message ID 20250410212256.480777-1-bryan@schmersal.org (mailing list archive)
State Handled Elsewhere
Headers show
Series [pynfs] Allow max_retries and delay_time to be passed as arguments to compound() | expand

Commit Message

bryan@schmersal.org April 10, 2025, 9:22 p.m. UTC
From: Bryan Schmersal <bryan@schmersal.org>

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

Patch

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