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

[dreamhost|dns] drop uuid gem requirements, not needed

Not sure to understand unique_id documentation from Dreamhost, but
experimentation shows that a new UUID every request isn't required
and Dreamhost says it's optional.

http://wiki.dreamhost.com/Application_programming_interface#Required
This commit is contained in:
Sergio Rubio 2013-01-22 21:32:23 +01:00
parent e469d70eaf
commit 3ba2f45cd9

View file

@ -1,6 +1,5 @@
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'dreamhost'))
require 'fog/dns'
require 'uuid'
module Fog
module DNS
@ -70,8 +69,7 @@ module Fog
def request(params)
params[:query].merge!( { :key => @dreamhost_api_key,
:format => 'json',
:unique_id => UUID.generate } )
:format => 'json' } )
response = @connection.request(params)
unless response.body.empty?