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:
commit
a5c5f7c332
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