diff options
author | Claire McQuin <mcquin@users.noreply.github.com> | 2014-06-09 15:26:14 -0700 |
---|---|---|
committer | Claire McQuin <mcquin@users.noreply.github.com> | 2014-06-09 15:26:14 -0700 |
commit | 8959420891b89ad33e8e9a010bed613b5f1cfae0 (patch) | |
tree | 57f073efb20cb25f9d0eedc0a334faa8515e1d8f /lib/chef/knife/bootstrap.rb | |
parent | 09f191207877fa69c2b0e83a247810c274f55563 (diff) | |
parent | 34056828954efae8fc7c6deb80e7ba4c8cd27e80 (diff) | |
download | chef-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.rb | 2 |
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 |