git://git.onelab.eu
/
plcapi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge from HEAD. Signed off by tmack.
[plcapi.git]
/
PLC
/
Methods
/
GetKeyTypes.py
diff --git
a/PLC/Methods/GetKeyTypes.py
b/PLC/Methods/GetKeyTypes.py
index
f005b99
..
32bb658
100644
(file)
--- 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.
"""
Returns an array of all valid key types.
"""
- roles = ['admin', 'pi', 'user', 'tech']
+ roles = ['admin', 'pi', 'user', 'tech'
, 'node'
]
accepts = [
Auth()
accepts = [
Auth()
@@
-17,5
+17,6
@@
class GetKeyTypes(Method):
returns = [KeyType.fields['key_type']]
returns = [KeyType.fields['key_type']]
+
def call(self, auth):
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)]