2 from PLC.Faults import *
3 from PLC.Method import Method
4 from PLC.Parameter import Parameter, Mixed
5 from PLC.BootStates import BootState, BootStates
6 from PLC.Auth import Auth
8 class GetBootStates(Method):
10 Returns an array of all valid node boot states.
13 roles = ['admin', 'pi', 'user', 'tech', 'node']
19 returns = [BootState.fields['boot_state']]
23 return [boot_state['boot_state'] for boot_state in BootStates(self.api)]