[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
1 changed files with 3 additions and 2 deletions

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