diff options
| author | Kartik Null Cating-Subramanian <ksubramanian@chef.io> | 2015-06-02 13:14:32 -0400 |
|---|---|---|
| committer | Kartik Null Cating-Subramanian <ksubramanian@chef.io> | 2015-06-02 13:16:28 -0400 |
| commit | 2e527b88de0830c16659b6d941f0a8433d845949 (patch) | |
| tree | 175271b6cee3d49136e2a31678326886d2dcaa3b | |
| parent | 93f7b74349362d0c698a1080177b94e64248dac6 (diff) | |
| download | chef-ksubrama/ssh_default.tar.gz | |
Make ssh_port default to 22 for knife bootstrap.ksubrama/ssh_default
This is the behavior of knife-windows.
| -rw-r--r-- | lib/chef/knife/bootstrap.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/chef/knife/bootstrap.rb b/lib/chef/knife/bootstrap.rb index 5b29591fcc..9625963825 100644 --- a/lib/chef/knife/bootstrap.rb +++ b/lib/chef/knife/bootstrap.rb @@ -59,6 +59,7 @@ class Chef :short => "-p PORT", :long => "--ssh-port PORT", :description => "The ssh port", + :default => 22, :proc => Proc.new { |key| Chef::Config[:knife][:ssh_port] = key } option :ssh_gateway, |
