summaryrefslogtreecommitdiff
path: root/chef/lib/chef/knife/ssh.rb
diff options
context:
space:
mode:
Diffstat (limited to 'chef/lib/chef/knife/ssh.rb')
-rw-r--r--chef/lib/chef/knife/ssh.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/chef/lib/chef/knife/ssh.rb b/chef/lib/chef/knife/ssh.rb
index a093160426..f458aa3a88 100644
--- a/chef/lib/chef/knife/ssh.rb
+++ b/chef/lib/chef/knife/ssh.rb
@@ -49,7 +49,7 @@ class Chef
:short => "-a ATTR",
:long => "--attribute ATTR",
:description => "The attribute to use for opening the connection - default depends on the context",
- :proc => Proc.new { |key| Chef::Config[:knife][:ssh_attribute] = key }
+ :proc => Proc.new { |key| Chef::Config[:knife][:ssh_attribute] = key.strip }
option :manual,
:short => "-m",