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:
parent
4662b2635d
commit
e34163465d
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue