diff options
author | Tim Smith <tsmith84@gmail.com> | 2020-06-09 16:30:27 -0700 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2020-06-23 10:23:48 -0700 |
commit | a0cd0d13f6ac1d077787fa6fcf2f5ddf80a90fc3 (patch) | |
tree | e4d5de77d37db902f49079387cd370961d49d1f7 /lib | |
parent | fb303196b178fcbf7f769246eb3fbb6dd4987cea (diff) | |
download | chef-a0cd0d13f6ac1d077787fa6fcf2f5ddf80a90fc3.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>
Diffstat (limited to 'lib')
-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 f61039cb51..503c1c99ca 100644 --- a/lib/chef/knife/bootstrap.rb +++ b/lib/chef/knife/bootstrap.rb @@ -619,7 +619,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 |