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

Merge pull request #590 from pweldon/fix-dme-update

[dnsmadeeasy|dns] Fix Fog::DNS::DNSMadeEasy::Record#save
This commit is contained in:
Wesley Beary 2011-11-07 07:04:15 -08:00
commit a5c5f7c332

View file

@ -58,11 +58,12 @@ module Fog
if id.nil?
data = connection.create_record(zone.domain, name, type, value, options).body
merge_attributes(data)
else
data = connection.update_record(zone.domain, id, options).body
options.merge!(:name => name, :type => type, :data => value)
connection.update_record(zone.domain, id, options).body
end
merge_attributes(data)
true
end