From 268fbc849b46b762926b335e0735d51209e259fb Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Fri, 24 Feb 2012 11:22:23 +0100 Subject: [PATCH 1/1] missing import --- PLC/Auth.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PLC/Auth.py b/PLC/Auth.py index 5479e25..2b93622 100644 --- a/PLC/Auth.py +++ b/PLC/Auth.py @@ -21,6 +21,7 @@ from PLC.Nodes import Node, Nodes from PLC.Interfaces import Interface, Interfaces from PLC.Sessions import Session, Sessions from PLC.Peers import Peer, Peers +from PLC.Keys import Keys from PLC.Boot import notify_owners class Auth(Parameter): @@ -82,7 +83,7 @@ class GPGAuth(Auth): raise PLCAuthenticationFailure, "GPGAuth: Not allowed to call method, missing role" keys = Keys(method.api, {'key_id': person['key_ids'], 'key_type': "gpg", 'peer_id': None}) - gpg_keys = [ key['key'] for key in keys] + gpg_keys = [ key['key'] for key in keys ] if not keys: raise PLCAuthenticationFailure, "GPGAuth: No GPG key on record for peer or user '%s'" -- 2.43.0