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 |
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