diff options
author | sersut <serdar@opscode.com> | 2014-03-17 21:51:31 -0700 |
---|---|---|
committer | sersut <serdar@opscode.com> | 2014-03-17 21:51:31 -0700 |
commit | 59a7c6f303918c2b986842e7549909fbf1803c8e (patch) | |
tree | effc0eb7331402e9902a0f9d904bcbd16e8f4cf7 /lib/chef/knife/client_bulk_delete.rb | |
parent | a023f8d1de419ba9c756f666e349897c81cecc17 (diff) | |
download | chef-59a7c6f303918c2b986842e7549909fbf1803c8e.tar.gz |
Specs for --delete-validators options.
Diffstat (limited to 'lib/chef/knife/client_bulk_delete.rb')
-rw-r--r-- | lib/chef/knife/client_bulk_delete.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/chef/knife/client_bulk_delete.rb b/lib/chef/knife/client_bulk_delete.rb index ef3764882e..25bce4300b 100644 --- a/lib/chef/knife/client_bulk_delete.rb +++ b/lib/chef/knife/client_bulk_delete.rb @@ -27,9 +27,9 @@ class Chef require 'chef/json_compat' end - option :force, - :short => "-f", - :long => "--force-validators", + option :delete_validators, + :short => "-D", + :long => "--delete-validators", :description => "Force deletion of clients if they're validators" banner "knife client bulk delete REGEX (options)" @@ -59,10 +59,10 @@ class Chef end unless validators_to_delete.empty? - unless config[:force] + unless config[:delete_validators] ui.msg("Following clients are validators and will not be deleted.") print_clients(validators_to_delete) - ui.msg("You must specify --force-validators to delete the validator clients") + ui.msg("You must specify --delete-validators to delete the validator clients") else ui.msg("The following validators will be deleted:") print_clients(validators_to_delete) |