X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;ds=sidebyside;f=PLC%2FMethods%2FGetKeyTypes.py;h=32bb6580608e35eda234337cee0e1599dd9acf85;hb=dc284781b50951778096561befcaa1bd33394168;hp=f005b99ece061ae122f991dcddde9fcdd9eb0268;hpb=51577ccbfa01fffba04b84e502a35f6a3915b68b;p=plcapi.git diff --git a/PLC/Methods/GetKeyTypes.py b/PLC/Methods/GetKeyTypes.py index f005b99..32bb658 100644 --- a/PLC/Methods/GetKeyTypes.py +++ b/PLC/Methods/GetKeyTypes.py @@ -9,7 +9,7 @@ class GetKeyTypes(Method): Returns an array of all valid key types. """ - roles = ['admin', 'pi', 'user', 'tech'] + roles = ['admin', 'pi', 'user', 'tech', 'node'] accepts = [ Auth() @@ -17,5 +17,6 @@ class GetKeyTypes(Method): returns = [KeyType.fields['key_type']] + def call(self, auth): - return [key_type['key_type'] for key_type in KeyTypes(self.api).values()] + return [key_type['key_type'] for key_type in KeyTypes(self.api)]