diff options
author | Tim Smith <tsmith84@gmail.com> | 2020-06-09 16:30:27 -0700 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2020-06-09 16:30:27 -0700 |
commit | d845f81e08191d902d29ed24afd2b0410e30cf64 (patch) | |
tree | eedce52626865d40bbbbaf0274f9ef3326118831 | |
parent | 3a713a5388930745a5c5da56b87dfc287c49aada (diff) | |
download | chef-d845f81e08191d902d29ed24afd2b0410e30cf64.tar.gz |
Let the user know what protocol we're using in knife bootstrap
This makes it really clear that you're not using the right protocol when you're bootstrapping a Windows node:
```
❰tsmith❙~/dev/work/chef(git✱knife_password)❱✘≻ bundle exec knife bootstrap 172.16.1.233 -U ubuntu
Connecting to 172.16.1.233
```
becomes
```
❰tsmith❙~/dev/work/chef(git✱knife_password)❱✘≻ bundle exec knife bootstrap 172.16.1.233 -U ubuntu
Connecting to 172.16.1.233 using ssh
```
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r-- | lib/chef/knife/bootstrap.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/knife/bootstrap.rb b/lib/chef/knife/bootstrap.rb index 6e0f86240d..21d6e09f96 100644 --- a/lib/chef/knife/bootstrap.rb +++ b/lib/chef/knife/bootstrap.rb @@ -602,7 +602,7 @@ class Chef end def connect! - ui.info("Connecting to #{ui.color(server_name, :bold)}") + ui.info("Connecting to #{ui.color(server_name, :bold)} using #{connection_protocol}") opts ||= connection_opts.dup do_connect(opts) rescue Train::Error => e |