diff options
author | sersut <serdar@opscode.com> | 2014-03-17 21:56:53 -0700 |
---|---|---|
committer | sersut <serdar@opscode.com> | 2014-03-17 21:56:53 -0700 |
commit | 60a61dded632bca0d6143c3a884da0cf5ad8e889 (patch) | |
tree | 752da464d6024d3ac06f5f0cc002fbbd4ad24f9d /lib | |
parent | 59a7c6f303918c2b986842e7549909fbf1803c8e (diff) | |
download | chef-60a61dded632bca0d6143c3a884da0cf5ad8e889.tar.gz |
Convert --force option of knife client delete to --delete-validators to be consistent with knife client bulk delete.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/chef/knife/client_delete.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/chef/knife/client_delete.rb b/lib/chef/knife/client_delete.rb index 56814de1b2..1902145c8d 100644 --- a/lib/chef/knife/client_delete.rb +++ b/lib/chef/knife/client_delete.rb @@ -27,9 +27,9 @@ class Chef require 'chef/json_compat' end - option :force, - :short => "-f", - :long => "--force", + option :delete_validators, + :short => "-D", + :long => "--delete-validators", :description => "Force deletion of client if it's a validator" banner "knife client delete CLIENT (options)" @@ -46,7 +46,7 @@ class Chef delete_object(Chef::ApiClient, @client_name, 'client') { object = Chef::ApiClient.load(@client_name) if object.validator - unless config[:force] + unless config[:delete_validators] ui.fatal("You must specify --force to delete the validator client #{@client_name}") exit 2 end |