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

[dnsmadeeasy|dns] Fix Fog::DNS::DNSMadeEasy::Record#save to handle updating a record correctly.

This commit is contained in:
Peter Weldon 2011-11-05 17:31:33 -07:00
parent 4662b2635d
commit e34163465d

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