From 93786933a816ade48682b4256e7f14bfea016c2c Mon Sep 17 00:00:00 2001 From: Tim Smith Date: Wed, 30 May 2018 20:31:22 -0700 Subject: Better errors with uninstalled official knife plugins Remove the mention of Chef .10 Remove terremark and bluebox Add more modern plugins Signed-off-by: Tim Smith --- lib/chef/knife.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'lib/chef/knife.rb') diff --git a/lib/chef/knife.rb b/lib/chef/knife.rb index 1e436f0fe6..146f7101be 100644 --- a/lib/chef/knife.rb +++ b/lib/chef/knife.rb @@ -234,7 +234,7 @@ class Chef end end - OFFICIAL_PLUGINS = %w{ec2 rackspace windows openstack terremark bluebox} + OFFICIAL_PLUGINS = %w{ec2 rackspace windows openstack azure google linode push vcenter lpar} class << self def list_commands(preferred_category = nil) @@ -258,7 +258,6 @@ class Chef caller_line.split(/:\d+/).first end - # :nodoc: # Error out and print usage. probably because the arguments given by the # user could not be resolved to a subcommand. # @api private @@ -273,7 +272,6 @@ class Chef if category_commands = guess_category(args) list_commands(category_commands) elsif missing_plugin = ( OFFICIAL_PLUGINS.find { |plugin| plugin == args[0] } ) - ui.info("The #{missing_plugin} commands were moved to plugins in Chef 0.10") ui.info("You can install the plugin with `(sudo) gem install knife-#{missing_plugin}`") ui.info("Use `chef gem install knife-#{missing_plugin}` instead if using ChefDK") else -- cgit v1.2.1