diff --git a/Gemfile.lock b/Gemfile.lock index 99f6724..05b4fef 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -180,8 +180,8 @@ GEM coderay (1.1.3) concurrent-ruby (1.3.8) connection_pool (2.5.5) - cookstyle (8.7.6) - rubocop (= 1.86.1) + cookstyle (9.0.0) + rubocop (= 1.90.0) corefoundation (0.3.19) ffi (>= 1.15.0) crack (1.0.1) @@ -485,8 +485,8 @@ GEM diff-lcs (>= 1.2.0, < 2.0) rspec-support (~> 3.13.0) rspec-support (3.13.7) - rubocop (1.86.1) - json (~> 2.3) + rubocop (1.90.0) + json (>= 2.3) language_server-protocol (~> 3.17.0.2) lint_roller (~> 1.1.0) parallel (>= 1.10) diff --git a/lib/chef/knife.rb b/lib/chef/knife.rb index 600c53e..236a798 100644 --- a/lib/chef/knife.rb +++ b/lib/chef/knife.rb @@ -541,9 +541,9 @@ def humanize_exception(e) ui.info "Check your knife configuration and network settings" when NameError, NoMethodError ui.error "knife encountered an unexpected error" - ui.info "This may be a bug in the '#{self.class.common_name}' knife command or plugin" - ui.info "Please collect the output of this command with the `-VVV` option before filing a bug report." - ui.info "Exception: #{e.class.name}: #{e.message}" + ui.info "This may be a bug in the '#{self.class.common_name}' knife command or plugin" + ui.info "Please collect the output of this command with the `-VVV` option before filing a bug report." + ui.info "Exception: #{e.class.name}: #{e.message}" when Chef::Exceptions::PrivateKeyMissing ui.error "Your private key could not be loaded from #{api_key}" ui.info "Check your configuration file and ensure that your private key is readable" diff --git a/lib/chef/knife/user_delete.rb b/lib/chef/knife/user_delete.rb index 173c001..6c068c5 100644 --- a/lib/chef/knife/user_delete.rb +++ b/lib/chef/knife/user_delete.rb @@ -78,7 +78,7 @@ def run end def disassociate_user(orgs, username) - orgs.each { |org| org.dissociate_user(username) } + orgs.each { |org| org.dissociate_user(username) } end def org_memberships(username)