get rid of svn keywords once and for good
[plcapi.git] / PLC / Methods / GetKeyTypes.py
index f005b99..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,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)]