summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2018-07-13 21:31:37 -0700
committerTim Smith <tsmith@chef.io>2018-09-25 11:46:22 -0700
commit69cfeaa3b1d965296c9b683df66e7b08d52fd523 (patch)
treef4336eeb63481e9b2f1b69d23af33b633bd9af97
parent3e0e62bef6400ab764cfaa8a2757b90fad92a0f6 (diff)
downloadchef-69cfeaa3b1d965296c9b683df66e7b08d52fd523.tar.gz
Improve the error message when knife bootstrap windows isn't installedbetter_error
If the user really wanted to run knife boostrap windows then the "hostname" bit here doesn't make sense. 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 f06a45452a..ae01a73c37 100644
--- a/lib/chef/knife/bootstrap.rb
+++ b/lib/chef/knife/bootstrap.rb
@@ -420,7 +420,7 @@ class Chef
exit 1
elsif server_name == "windows"
# catches "knife bootstrap windows" when that command is not installed
- ui.warn("Hostname containing 'windows' specified. Please install 'knife-windows' if you are attempting to bootstrap a Windows node via WinRM.")
+ ui.warn("'knife bootstrap windows' specified, but the knife-windows plugin is not installed. Please install 'knife-windows' if you are attempting to bootstrap a Windows node via WinRM.")
end
end