X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=PLC%2FMethods%2FGetBootStates.py;h=71e2cd439f1c79431c5198bb4db686d673b0435a;hb=1f8c38dd1357c93e4be8d94456b7274a591d2db4;hp=fd7bdd27aead88bc18a2466b5755fd961389725c;hpb=8a487f290fe09f77b4e1c1bf7ddb38a5ab4832e6;p=plcapi.git diff --git a/PLC/Methods/GetBootStates.py b/PLC/Methods/GetBootStates.py index fd7bdd2..71e2cd4 100644 --- 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.Auth import PasswordAuth +from PLC.Auth import Auth class GetBootStates(Method): """ @@ -12,7 +12,7 @@ class GetBootStates(Method): roles = ['admin', 'pi', 'user', 'tech'] accepts = [ - PasswordAuth() + Auth() ] returns = [BootState.fields['boot_state']]