Skip to content

Commit

Permalink
Merge pull request #278 from DUNE-DAQ/PawelPlesniak/StatusFormat
Browse files Browse the repository at this point in the history
Correcting status format
  • Loading branch information
plasorak authored Oct 23, 2024
2 parents 6227886 + f1bf874 commit ef99776
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/drunc/utils/shell_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit ef99776

Please sign in to comment.