libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject [1/2] git commit: Issue LIBCLOUD-484: dns driver bug fix - list_records
Date Fri, 03 Jan 2014 13:36:40 GMT
Updated Branches:
  refs/heads/trunk b7f709f14 -> 039f74206


Issue LIBCLOUD-484: dns driver bug fix - list_records

Signed-off-by: Tomaz Muraus <tomaz@apache.org>


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

Branch: refs/heads/trunk
Commit: a8b3d4bb2a9447bfcc968d84ca4608f638363961
Parents: b7f709f
Author: Dinesh Bhoopathy <db@vr.org>
Authored: Thu Jan 2 23:36:40 2014 -0800
Committer: Tomaz Muraus <tomaz@apache.org>
Committed: Fri Jan 3 13:51:44 2014 +0100

----------------------------------------------------------------------
 libcloud/dns/drivers/hostvirtual.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/a8b3d4bb/libcloud/dns/drivers/hostvirtual.py
----------------------------------------------------------------------
diff --git a/libcloud/dns/drivers/hostvirtual.py b/libcloud/dns/drivers/hostvirtual.py
index 94da737..116d385 100644
--- a/libcloud/dns/drivers/hostvirtual.py
+++ b/libcloud/dns/drivers/hostvirtual.py
@@ -113,10 +113,10 @@ class HostVirtualDNSDriver(DNSDriver):
         return zones
 
     def list_records(self, zone):
-        params = {'zone_id': zone.id}
+        params = {'id': zone.id}
         self.connection.set_context({'resource': 'zone', 'id': zone.id})
         result = self.connection.request(
-            API_ROOT + '/dns/records/', data=json.dumps(params)).object
+            API_ROOT + '/dns/records/', params=params).object
         records = self._to_records(items=result, zone=zone)
         return records
 


Mime
View raw message