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