summaryrefslogtreecommitdiff
path: root/lib/chef/server_api.rb
diff options
context:
space:
mode:
authorJose Asuncion <jose.asuncion@gmail.com>2017-08-16 18:25:05 -0700
committerJose Asuncion <jose.asuncion@gmail.com>2017-08-16 18:25:05 -0700
commit61916b652b80f3e6982bac0c925b86b32b7571f6 (patch)
tree4fad729321bd73a3ada07ec894bd916eb5e0fa42 /lib/chef/server_api.rb
parent0eb90ddd97fa97e3a225453baaccf32194aef06d (diff)
downloadchef-61916b652b80f3e6982bac0c925b86b32b7571f6.tar.gz
Revert "raise error if chef_server_url is not valid"
This reverts commit 02a46911341c1d5ef10309d27963031d598dbe2c.
Diffstat (limited to 'lib/chef/server_api.rb')
-rw-r--r--lib/chef/server_api.rb4
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/chef/server_api.rb b/lib/chef/server_api.rb
index d4644e8fc7..2bdc5d9fe8 100644
--- a/lib/chef/server_api.rb
+++ b/lib/chef/server_api.rb
@@ -25,7 +25,6 @@ require "chef/http/json_output"
require "chef/http/remote_request_id"
require "chef/http/validate_content_length"
require "chef/http/api_versions"
-require "chef/exceptions"
class Chef
class ServerAPI < Chef::HTTP
@@ -36,9 +35,6 @@ class Chef
options[:signing_key_filename] = nil if chef_zero_uri?(url)
options[:inflate_json_class] = false
super(url, options)
-
- chef_server_attrs = get("/").keys.sort
- raise Chef::Exceptions::NotAChefServerException if %w[ guid full_name name ].sort != chef_server_attrs
end
use Chef::HTTP::JSONInput