summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-06-09 16:30:27 -0700
committerTim Smith <tsmith84@gmail.com>2020-06-09 16:30:27 -0700
commitd845f81e08191d902d29ed24afd2b0410e30cf64 (patch)
treeeedce52626865d40bbbbaf0274f9ef3326118831
parent3a713a5388930745a5c5da56b87dfc287c49aada (diff)
downloadchef-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.rb2
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