Skip to content

Commit

Permalink
Merge pull request #150 from sgherdao/fix-sanitize-tmux-session-name
Browse files Browse the repository at this point in the history
fix: sanitize colons too in tmux session name
  • Loading branch information
xorrkaz authored Apr 21, 2024
2 parents 0593c9b + 63e3405 commit e81069b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion virl/cli/tmux/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def tmux(group):
node_console_cmd.append((node_obj, cmd))

if node_console_cmd:
session_title = "{}-{}".format(str(lab.title).replace(".", "_"), lab.id[:4])
session_title = "{}-{}".format(str(lab.title).replace(".", "_").replace(":", "_"), lab.id[:4])
connect_tmux(session_title, node_console_cmd, group)
else:
click.secho("Unable to find any valid nodes", fg="red")
Expand Down

0 comments on commit e81069b

Please sign in to comment.