From 764e3e37229b95dfa4f3acdae5ecb8f3d5ed588f Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Sat, 9 Dec 2023 16:47:56 -0500 Subject: [PATCH] Fix bug in fault header format --- client-cli/pvc/cli/formatters.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/client-cli/pvc/cli/formatters.py b/client-cli/pvc/cli/formatters.py index 22934d64..0db6098a 100644 --- a/client-cli/pvc/cli/formatters.py +++ b/client-cli/pvc/cli/formatters.py @@ -388,22 +388,22 @@ def cli_cluster_fault_list_format_short(CLI_CONFIG, fault_data): fault_id_length + fault_status_length + fault_health_delta_length + 2 ) detail_header_length = ( - fault_health_delta_length + fault_id_length + + fault_health_delta_length + fault_status_length + fault_last_reported_length + fault_message_length + 3 - meta_header_length - + 8 ) # Format the string (header) fault_list_output.append( - "{bold}Meta {meta_dashes} Fault {detail_dashes}{end_bold}".format( + "{bold}Meta {meta_dashes} Fault {detail_dashes}{end_bold}".format( bold=ansii["bold"], end_bold=ansii["end"], - meta_dashes="-" * (meta_header_length - len("Meta ")), - detail_dashes="-" * (detail_header_length - len("Fault ")), + meta_dashes="-" * (meta_header_length - len("Meta ")), + detail_dashes="-" * (detail_header_length - len("Fault ")), ) )