From 13e309b45057089b9db2deb9449b8c523a1f8bc9 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Wed, 18 Aug 2021 19:41:53 -0400 Subject: [PATCH] Fix colours of network status elements --- client-cli/pvc/cli_lib/network.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/client-cli/pvc/cli_lib/network.py b/client-cli/pvc/cli_lib/network.py index 5fa08871..72bd6555 100644 --- a/client-cli/pvc/cli_lib/network.py +++ b/client-cli/pvc/cli_lib/network.py @@ -491,14 +491,10 @@ def net_sriov_vf_info(config, node, vf): # Output display functions # def getColour(value): - if value in ['True', "start"]: - return ansiprint.green() - elif value in ["restart", "shutdown"]: - return ansiprint.yellow() - elif value in ["stop", "fail"]: - return ansiprint.red() - else: + if value in ["False", "None"]: return ansiprint.blue() + else: + return ansiprint.green() def getOutputColours(network_information):