summaryrefslogtreecommitdiff
path: root/lib/chef/knife
diff options
context:
space:
mode:
authorTony Novak <afn2@cornell.edu>2017-11-20 10:03:08 -0500
committerTony Novak <afn2@cornell.edu>2017-11-20 10:06:24 -0500
commitab2aad50f613eb9b2f59da2c1452b27fd3f2f589 (patch)
treec053cc8be6b5055dd2ddc9e87bfbb1b6823554a2 /lib/chef/knife
parent25d1ec70d26e999a9998e6b8df6078f0df01aa5a (diff)
downloadchef-ab2aad50f613eb9b2f59da2c1452b27fd3f2f589.tar.gz
Filter out periods from tmux session name
Fixes #6592 Signed-off-by: Tony Novak <tony@getnexar.com>
Diffstat (limited to 'lib/chef/knife')
-rw-r--r--lib/chef/knife/ssh.rb2
1 files changed, 1 insertions, 1 deletions
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}",