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