From 1ee8fb99dc53033b3dfae6c3c640b359e45dc416 Mon Sep 17 00:00:00 2001 From: Joshua Boniface Date: Thu, 7 Jun 2018 00:32:10 -0400 Subject: [PATCH] Add colours to node status --- NodeInstance.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/NodeInstance.py b/NodeInstance.py index bae2b79d..7cc3e790 100644 --- a/NodeInstance.py +++ b/NodeInstance.py @@ -250,6 +250,6 @@ class NodeInstance(): # Display cluster information to the terminal ansiiprint.echo('Cluster status', '', 't') - ansiiprint.echo('Active nodes: {}'.format(' '.join(self.active_node_list)), '', 'c') - ansiiprint.echo('Flushed nodes: {}'.format(' '.join(self.flushed_node_list)), '', 'c') - ansiiprint.echo('Inactive nodes: {}'.format(' '.join(self.inactive_node_list)), '', 'c') + ansiiprint.echo('{}Active{} nodes: {}'.format(ansiiprint.green(), ansiiprint.end(), ' '.join(self.active_node_list)), '', 'c') + ansiiprint.echo('{}Flushed{} nodes: {}'.format(ansiiprint.yellow(), ansiiprint.end(), ' '.join(self.flushed_node_list)), '', 'c') + ansiiprint.echo('{}Inactive{} nodes: {}'.format(ansiiprint.red(), ansiiprint.end(), ' '.join(self.inactive_node_list)), '', 'c')