From f1bf874e5b75719f8d2b059f40a5ac0c6bef36eb Mon Sep 17 00:00:00 2001 From: PawelPlesniak Date: Wed, 23 Oct 2024 11:52:58 +0200 Subject: [PATCH] Correcting status format --- src/drunc/utils/shell_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drunc/utils/shell_utils.py b/src/drunc/utils/shell_utils.py index c050446a..e7f6232f 100644 --- a/src/drunc/utils/shell_utils.py +++ b/src/drunc/utils/shell_utils.py @@ -303,7 +303,7 @@ def critical(self, *args, **kwargs) -> None: def print_status_summary(self) -> None: status = self.get_driver('controller').get_status().data.state - available_actions = [command.name for command in self.get_driver('controller').describe_fsm().data.commands] + available_actions = [command.name.replace("_", "-") for command in self.get_driver('controller').describe_fsm().data.commands] if status.find('(') == -1: self.print(f"Current FSM status is [green]{status}[/green]. Available transitions are [green]{'[/green], [green]'.join(available_actions)}[/green].") else: