Return-Path: X-Original-To: apmail-libcloud-commits-archive@www.apache.org Delivered-To: apmail-libcloud-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4343C10400 for ; Fri, 3 Jan 2014 13:36:43 +0000 (UTC) Received: (qmail 60824 invoked by uid 500); 3 Jan 2014 13:36:43 -0000 Delivered-To: apmail-libcloud-commits-archive@libcloud.apache.org Received: (qmail 60783 invoked by uid 500); 3 Jan 2014 13:36:42 -0000 Mailing-List: contact commits-help@libcloud.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@libcloud.apache.org Delivered-To: mailing list commits@libcloud.apache.org Received: (qmail 60767 invoked by uid 99); 3 Jan 2014 13:36:41 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Jan 2014 13:36:41 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id B7471915AED; Fri, 3 Jan 2014 13:36:40 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: tomaz@apache.org To: commits@libcloud.apache.org Date: Fri, 03 Jan 2014 13:36:40 -0000 Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: [1/2] git commit: Issue LIBCLOUD-484: dns driver bug fix - list_records Updated Branches: refs/heads/trunk b7f709f14 -> 039f74206 Issue LIBCLOUD-484: dns driver bug fix - list_records Signed-off-by: Tomaz Muraus 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 Authored: Thu Jan 2 23:36:40 2014 -0800 Committer: Tomaz Muraus 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