Merge remote-tracking branch 'origin/pycurl' into planetlab-4_0-branch
[plcapi.git] / PLC / Methods / GetKeyTypes.py
index 4c742ee..32bb658 100644 (file)
@@ -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,8 +17,6 @@ class GetKeyTypes(Method):
 
     returns = [KeyType.fields['key_type']]
 
-    event_type = 'Get'
-    object_type = 'KeyType'
 
     def call(self, auth):
         return [key_type['key_type'] for key_type in KeyTypes(self.api)]