summaryrefslogtreecommitdiff
path: root/lib/chef/knife.rb
diff options
context:
space:
mode:
authorThom May <thom@may.lt>2018-03-14 15:20:47 +0000
committerGitHub <noreply@github.com>2018-03-14 15:20:47 +0000
commite20de6e6a79d0e16d4acc4f6eb7b6edebfaf4779 (patch)
treeda0324c197e074f33b83f1159311366b9fc2cddf /lib/chef/knife.rb
parentadf7574a076056a46325d5e764b9878793295d60 (diff)
downloadchef-e20de6e6a79d0e16d4acc4f6eb7b6edebfaf4779.tar.gz
Revert "Knife should give a useful error when the chef_server_url isn't a chef server API"revert-6253-feat/5556
Diffstat (limited to 'lib/chef/knife.rb')
-rw-r--r--lib/chef/knife.rb2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/chef/knife.rb b/lib/chef/knife.rb
index 49b4b50cd7..4e975c2b27 100644
--- a/lib/chef/knife.rb
+++ b/lib/chef/knife.rb
@@ -475,8 +475,6 @@ class Chef
when Chef::Exceptions::InvalidRedirect
ui.error "Invalid Redirect: #{e.message}"
ui.info "Change your server location in knife.rb to the server's FQDN to avoid unwanted redirections."
- when Chef::Exceptions::NotAChefServerException
- ui.error "#{Chef::Config[:chef_server_url]} is not a valid chef server"
else
ui.error "#{e.class.name}: #{e.message}"
end