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
(most) all functions now take SessionAuth in addition to PasswordAuth
[plcapi.git]
/
PLC
/
Methods
/
GetBootStates.py
diff --git
a/PLC/Methods/GetBootStates.py
b/PLC/Methods/GetBootStates.py
index
fd7bdd2
..
71e2cd4
100644
(file)
--- a/
PLC/Methods/GetBootStates.py
+++ b/
PLC/Methods/GetBootStates.py
@@
-2,7
+2,7
@@
from PLC.Faults import *
from PLC.Method import Method
from PLC.Parameter import Parameter, Mixed
from PLC.BootStates import BootState, BootStates
from PLC.Method import Method
from PLC.Parameter import Parameter, Mixed
from PLC.BootStates import BootState, BootStates
-from PLC.Auth import
Password
Auth
+from PLC.Auth import Auth
class GetBootStates(Method):
"""
class GetBootStates(Method):
"""
@@
-12,7
+12,7
@@
class GetBootStates(Method):
roles = ['admin', 'pi', 'user', 'tech']
accepts = [
roles = ['admin', 'pi', 'user', 'tech']
accepts = [
-
Password
Auth()
+ Auth()
]
returns = [BootState.fields['boot_state']]
]
returns = [BootState.fields['boot_state']]