From 8289633a8fb2f5a6a603d76cee7df7ed7da0b20c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre-Elliott=20B=C3=A9cue?= Date: Sat, 7 Mar 2015 09:56:51 +0100 Subject: [PATCH] Unhashable type list. --- services.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services.py b/services.py index ea1c72b..628d67a 100644 --- a/services.py +++ b/services.py @@ -322,7 +322,7 @@ def services_to_restart(conn, old_attrs={}, new_attrs={}, created_object=[], del # Je met la reconfiguration du home / del_user à la main pour la création/suppression d'un compte crans # parce que que je vois pas vraiement comment faire autrement if 'cransAccount' in added_objectClass + updated_objectClass: - if str(new_attrs.get('uid', [''])) != str(old_attrs.get(['uid'], [''])): + if str(new_attrs.get('uid', [''])[0]) != str(old_attrs.get(['uid'], [''])[0]): arg = services_to_args['home'](old_attrs, new_attrs) service_to_restart(conn, "home", list(arg), 0)