summaryrefslogtreecommitdiff
path: root/chef/lib/chef/knife/ssh.rb
diff options
context:
space:
mode:
authorBryan McLellan <btm@opscode.com>2012-09-14 09:41:38 -0700
committerBryan McLellan <btm@opscode.com>2012-09-14 09:41:38 -0700
commit441f48233a68f3bcd21a8f774af62100b3322ca8 (patch)
tree75ff3b96b5d7ecfc55edcab7f740ff23942f278c /chef/lib/chef/knife/ssh.rb
parentaad5c1cc7823401789bcf0e4312f07849a7b8772 (diff)
downloadchef-441f48233a68f3bcd21a8f774af62100b3322ca8.tar.gz
Sometimes the tests leak a leading space into this attribute, clean it up.
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",