1 from PLC.Faults import *
2 from PLC.Method import Method
3 from PLC.Parameter import Parameter, Mixed
4 from PLC.BootStates import BootState, BootStates
5 from PLC.Auth import Auth
7 class GetBootStates(Method):
9 Returns a list of all valid node boot states.
12 roles = ['admin', 'pi', 'user', 'tech']
18 returns = [BootState.fields['boot_state']]
21 return [boot_state['boot_state'] for boot_state in BootStates(self.api).values()]