oops
authorThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Fri, 24 Feb 2012 10:30:47 +0000 (11:30 +0100)
committerThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Fri, 24 Feb 2012 10:30:47 +0000 (11:30 +0100)
PLC/Auth.py

index 2b93622..c370da9 100644 (file)
@@ -85,7 +85,7 @@ class GPGAuth(Auth):
                 keys = Keys(method.api, {'key_id': person['key_ids'], 'key_type': "gpg", 'peer_id': None})
                 gpg_keys = [ key['key'] for key in keys ]
 
-            if not keys:
+            if not gpg_keys:
                 raise PLCAuthenticationFailure, "GPGAuth: No GPG key on record for peer or user '%s'"
 
             for gpg_key in gpg_keys: