Repository: libcloud
Updated Branches:
  refs/heads/trunk 4ffa31579 -> 7d6a02a24


Since GoDaddy uses the PUT verb  the previous update record method replaced the 
zone records, not the single records.


Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/7d6a02a2
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/7d6a02a2
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/7d6a02a2

Branch: refs/heads/trunk
Commit: 7d6a02a24a89216af3e119b96a96eb7bb1cb063b
Parents: 4ffa315
Author: Anthony Shaw <anthony.p.s...@gmail.com>
Authored: Fri Nov 27 18:52:49 2015 +1100
Committer: Anthony Shaw <anthony.p.s...@gmail.com>
Committed: Fri Nov 27 18:52:49 2015 +1100

----------------------------------------------------------------------
 libcloud/dns/drivers/godaddy.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/7d6a02a2/libcloud/dns/drivers/godaddy.py
----------------------------------------------------------------------
diff --git a/libcloud/dns/drivers/godaddy.py b/libcloud/dns/drivers/godaddy.py
index 011780f..2f45502 100644
--- a/libcloud/dns/drivers/godaddy.py
+++ b/libcloud/dns/drivers/godaddy.py
@@ -223,7 +223,10 @@ class GoDaddyDNSDriver(DNSDriver):
         """
         new_record = self._format_record(name, type, data, extra)
         self.connection.request(
-            '/v1/domains/%s/records' % (record.zone.domain), method='PUT',
+            '/v1/domains/%s/records/%s/%s' % (record.zone.domain,
+                                              record.type,
+                                              record.name),
+            method='PUT',
             data=[new_record])
         id = self._get_id_of_record(name, type)
         return Record(

Reply via email to