diff options
author | Bryan McLellan <btm@opscode.com> | 2012-09-14 09:41:38 -0700 |
---|---|---|
committer | Bryan McLellan <btm@opscode.com> | 2012-09-14 09:41:38 -0700 |
commit | 441f48233a68f3bcd21a8f774af62100b3322ca8 (patch) | |
tree | 75ff3b96b5d7ecfc55edcab7f740ff23942f278c | |
parent | aad5c1cc7823401789bcf0e4312f07849a7b8772 (diff) | |
download | chef-441f48233a68f3bcd21a8f774af62100b3322ca8.tar.gz |
Sometimes the tests leak a leading space into this attribute, clean it up.
-rw-r--r-- | chef/lib/chef/knife/ssh.rb | 2 |
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", |