class GetBootStates(Method):
"""
- Returns a list of all valid node boot states.
+ Returns an array of all valid node boot states.
"""
- roles = ['admin', 'pi', 'user', 'tech']
+ roles = ['admin', 'pi', 'user', 'tech', 'node']
accepts = [
Auth()
returns = [BootState.fields['boot_state']]
+
def call(self, auth):
- return [boot_state['boot_state'] for boot_state in BootStates(self.api).values()]
+ return [boot_state['boot_state'] for boot_state in BootStates(self.api)]