From fe69ed50522b0c19d06989865029a3bfbaf57e24 Mon Sep 17 00:00:00 2001 From: Martin Kourim Date: Mon, 20 Mar 2023 17:26:14 +0100 Subject: [PATCH] Match valid certificate counter message --- cardano_clusterlib/clusterlib_helpers.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cardano_clusterlib/clusterlib_helpers.py b/cardano_clusterlib/clusterlib_helpers.py index ebb0567..ce461ea 100644 --- a/cardano_clusterlib/clusterlib_helpers.py +++ b/cardano_clusterlib/clusterlib_helpers.py @@ -122,7 +122,10 @@ def _get_kes_period_info(kes_info: str) -> Dict[str, Any]: messages_list.append(" ".join(message_entry)) for out_message in messages_list: - if "counter agrees with" in out_message: + if ( + "counter agrees with" in out_message + or "counter ahead of the node protocol state counter by 1" in out_message + ): valid_counters = True elif "correct KES period interval" in out_message: valid_kes_period = True