Skip to content

Commit

Permalink
restore rest_utils (wrong commit)
Browse files Browse the repository at this point in the history
  • Loading branch information
fred06fr committed Feb 17, 2017
1 parent 61bdfe5 commit 13a0276
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/lib/vagrant-openstack-provider/client/rest_utils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,19 @@ module RestUtils
def self.get(env, url, headers = {}, &block)
config = env[:machine].provider_config
RestClient::Request.execute(method: :get, url: url, headers: headers,
timeout: config.http.read_timeout, open_timeout: config.http.open_timeout, verify_ssl: false, &block)
timeout: config.http.read_timeout, open_timeout: config.http.open_timeout, &block)
end

def self.post(env, url, payload, headers = {}, &block)
config = env[:machine].provider_config
RestClient::Request.execute(method: :post, url: url, payload: payload, headers: headers,
timeout: config.http.read_timeout, open_timeout: config.http.open_timeout, verify_ssl: false, &block)
timeout: config.http.read_timeout, open_timeout: config.http.open_timeout, &block)
end

def self.delete(env, url, headers = {}, &block)
config = env[:machine].provider_config
RestClient::Request.execute(method: :delete, url: url, headers: headers,
timeout: config.http.read_timeout, open_timeout: config.http.open_timeout, verify_ssl: false, &block)
timeout: config.http.read_timeout, open_timeout: config.http.open_timeout, &block)
end
end
end
Expand Down

0 comments on commit 13a0276

Please sign in to comment.