Add shutdown colour to output

This commit is contained in:
Joshua Boniface 2019-06-19 14:28:04 -04:00
parent 0060c0313b
commit 80de40252b
1 changed files with 2 additions and 0 deletions

View File

@ -256,6 +256,8 @@ def getOutputColours(node_information):
daemon_state_colour = ansiprint.green() daemon_state_colour = ansiprint.green()
elif node_information['daemon_state'] == 'stop': elif node_information['daemon_state'] == 'stop':
daemon_state_colour = ansiprint.red() daemon_state_colour = ansiprint.red()
elif node_information['daemon_state'] == 'shutdown':
daemon_state_colour = ansiprint.yellow()
elif node_information['daemon_state'] == 'init': elif node_information['daemon_state'] == 'init':
daemon_state_colour = ansiprint.yellow() daemon_state_colour = ansiprint.yellow()
elif node_information['daemon_state'] == 'dead': elif node_information['daemon_state'] == 'dead':