summaryrefslogtreecommitdiff
path: root/lib/chef/knife/bootstrap.rb
diff options
context:
space:
mode:
authorClaire McQuin <mcquin@users.noreply.github.com>2014-06-09 15:26:14 -0700
committerClaire McQuin <mcquin@users.noreply.github.com>2014-06-09 15:26:14 -0700
commit8959420891b89ad33e8e9a010bed613b5f1cfae0 (patch)
tree57f073efb20cb25f9d0eedc0a334faa8515e1d8f /lib/chef/knife/bootstrap.rb
parent09f191207877fa69c2b0e83a247810c274f55563 (diff)
parent34056828954efae8fc7c6deb80e7ba4c8cd27e80 (diff)
downloadchef-8959420891b89ad33e8e9a010bed613b5f1cfae0.tar.gz
Merge pull request #1364 from opscode/bootstrap-winrm-warning
Warning if target hostname resembles "knife bootstrap windows winrm" command.
Diffstat (limited to 'lib/chef/knife/bootstrap.rb')
-rw-r--r--lib/chef/knife/bootstrap.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/chef/knife/bootstrap.rb b/lib/chef/knife/bootstrap.rb
index aae927e0ca..46cacbd3e0 100644
--- a/lib/chef/knife/bootstrap.rb
+++ b/lib/chef/knife/bootstrap.rb
@@ -239,6 +239,8 @@ class Chef
if Array(@name_args).first.nil?
ui.error("Must pass an FQDN or ip to bootstrap")
exit 1
+ elsif Array(@name_args).first == "windows"
+ ui.warn("Hostname containing 'windows' specified. Please install 'knife-windows' if you are attempting to bootstrap a Windows node via WinRM.")
end
end