diff options
author | tylercloke <tylercloke@gmail.com> | 2015-06-04 12:23:55 -0700 |
---|---|---|
committer | tylercloke <tylercloke@gmail.com> | 2015-06-05 13:47:44 -0700 |
commit | 58048d42caeadc290876a02aaec7eec6f305920a (patch) | |
tree | ea9743fc860b69f2c4c20bb26b7f58a5d2f6f44f /lib/chef/knife/user_delete.rb | |
parent | 4f2400c8cce57e68f14cb9d4b756ab82b23dd69d (diff) | |
download | chef-58048d42caeadc290876a02aaec7eec6f305920a.tar.gz |
Better API version error handling helper code.
Renamed Chef::Mixin::ApiVersionRequestHandling.handle_version_http_exception -> server_client_api_version_intersection and made it do much more useful / sane things. See comments for details.
Diffstat (limited to 'lib/chef/knife/user_delete.rb')
-rw-r--r-- | lib/chef/knife/user_delete.rb | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/chef/knife/user_delete.rb b/lib/chef/knife/user_delete.rb index 3a46e33f84..803be6b90c 100644 --- a/lib/chef/knife/user_delete.rb +++ b/lib/chef/knife/user_delete.rb @@ -41,6 +41,9 @@ EOF end def run_osc_11_user_delete + # run osc_user_delete with our input + ARGV.delete("user") + ARGV.unshift("osc_user") Chef::Knife.run(ARGV, Chef::Application::Knife.options) end @@ -82,12 +85,7 @@ EOF # OSC 11 case if object.username.nil? ui.warn(osc_11_warning) - - # run osc_user_delete with our input - ARGV.delete("user") - ARGV.unshift("osc_user") run_osc_11_user_delete - else # proceed with EC / CS delete delete_object(@user_name) end |