From f83b3dbe2d731698cdb7df5ed09076d808e93344 Mon Sep 17 00:00:00 2001 From: Thibault Vataire Date: Tue, 29 Jul 2025 00:29:54 +0200 Subject: [PATCH] Fix error "Failed to login to zimbra account : unhashable type: 'slice'" when providing a 'duration' value different than 0 to the ZimbraAbstractClient.delegated_login method. --- zimsoap/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zimsoap/client.py b/zimsoap/client.py index 9997ab5..850da62 100644 --- a/zimsoap/client.py +++ b/zimsoap/client.py @@ -296,7 +296,7 @@ def delegated_login(self, login, admin_zc, duration=0): selector = zobjects.Account(name=login).to_selector() delegate_args = {'account': selector} if duration: - delegate_args['duration': duration] + delegate_args['duration'] = duration resp = admin_zc.request('DelegateAuth', delegate_args) lifetime = resp['lifetime']