1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[dreamhost|dns] remove silly debugging code

This commit is contained in:
Sergio Rubio 2013-01-21 19:43:49 +01:00
parent 05371c5a6a
commit 2650d6d53b

View file

@ -68,7 +68,6 @@ module Fog
end
def request(params)
#response = @connection.request(params.merge!({:host => @host}))
params[:query].merge!( { :key => @dreamhost_api_key,
:format => 'json',
:unique_id => UUID.generate } )
@ -77,15 +76,6 @@ module Fog
unless response.body.empty?
response.body = MultiJson.decode(response.body)
end
if ENV['DEBUG_DREAMHOST']
require 'pp'
puts "--- REQUEST PARAMS ---"
pp params
puts "--- END PARAMS --- "
puts "--- REQUEST RESPONSE ---"
pp response
puts "--- END RESPONSE --- "
end
if response.body['result'] != 'success'
raise response.body['data']
end