From ab2aad50f613eb9b2f59da2c1452b27fd3f2f589 Mon Sep 17 00:00:00 2001 From: Tony Novak Date: Mon, 20 Nov 2017 10:03:08 -0500 Subject: Filter out periods from tmux session name Fixes #6592 Signed-off-by: Tony Novak --- lib/chef/knife/ssh.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/chef/knife/ssh.rb') diff --git a/lib/chef/knife/ssh.rb b/lib/chef/knife/ssh.rb index ae14ce9954..f4a025dba3 100644 --- a/lib/chef/knife/ssh.rb +++ b/lib/chef/knife/ssh.rb @@ -461,7 +461,7 @@ class Chef end.join(" \\; ") end - tmux_name = "'knife ssh #{@name_args[0].tr(':', '=')}'" + tmux_name = "'knife ssh #{@name_args[0].tr(':.', '=-')}'" begin server = session.servers_for.first cmd = ["tmux new-session -d -s #{tmux_name}", -- cgit v1.2.1