From 63895c98d4659c9753ecab280cbae235e509e9b0 Mon Sep 17 00:00:00 2001 From: Valentin Samir Date: Tue, 18 Feb 2014 21:36:52 +0100 Subject: [PATCH] =?UTF-8?q?[populate=5FsshFingerprint]=20Ne=20pas=20pr?= =?UTF-8?q?=C3=A9suposer=20que=20la=20valeur=20d'un=20attribut=20est=20une?= =?UTF-8?q?=20string?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gestion/gen_confs/populate_sshFingerprint.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gestion/gen_confs/populate_sshFingerprint.py b/gestion/gen_confs/populate_sshFingerprint.py index ac146504..3b32d4b4 100755 --- a/gestion/gen_confs/populate_sshFingerprint.py +++ b/gestion/gen_confs/populate_sshFingerprint.py @@ -85,7 +85,7 @@ def publish_keys(): validation=check_keys(keys) machines=get_machines() for machine in machines: - sshkeys_old=[key.value for key in machine.get('sshFingerprint',[])] + sshkeys_old=[str(key) for key in machine.get('sshFingerprint',[])] sshkeys_new=[key.decode('UTF-8') for algo,key in keys.items() if validation[algo]] if not set(sshkeys_old)==set(sshkeys_new): machine['sshFingerprint']=sshkeys_new