diff options
author | Thom May <thom@may.lt> | 2018-03-14 15:20:47 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-14 15:20:47 +0000 |
commit | e20de6e6a79d0e16d4acc4f6eb7b6edebfaf4779 (patch) | |
tree | da0324c197e074f33b83f1159311366b9fc2cddf /lib/chef/knife.rb | |
parent | adf7574a076056a46325d5e764b9878793295d60 (diff) | |
download | chef-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.rb | 2 |
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 |