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
fix syntax error
[plcapi.git]
/
PLC
/
Methods
/
GetBootStates.py
diff --git
a/PLC/Methods/GetBootStates.py
b/PLC/Methods/GetBootStates.py
index
1c9afc3
..
9105d12
100644
(file)
--- a/
PLC/Methods/GetBootStates.py
+++ b/
PLC/Methods/GetBootStates.py
@@
-1,3
+1,5
@@
+# $Id$
+# $URL$
from PLC.Faults import *
from PLC.Method import Method
from PLC.Parameter import Parameter, Mixed
from PLC.Faults import *
from PLC.Method import Method
from PLC.Parameter import Parameter, Mixed
@@
-9,16
+11,14
@@
class GetBootStates(Method):
Returns an array of all valid node boot states.
"""
Returns an array of all valid node boot states.
"""
- roles = ['admin', 'pi', 'user', 'tech']
+ roles = ['admin', 'pi', 'user', 'tech'
, 'node'
]
accepts = [
Auth()
]
returns = [BootState.fields['boot_state']]
accepts = [
Auth()
]
returns = [BootState.fields['boot_state']]
-
- event_type = 'Get'
- object_type = 'BootState'
+
def call(self, auth):
return [boot_state['boot_state'] for boot_state in BootStates(self.api)]
def call(self, auth):
return [boot_state['boot_state'] for boot_state in BootStates(self.api)]