From b48923408dda2b234aad9a3e8c9507b9a218c59b Mon Sep 17 00:00:00 2001 From: Bojan Mihelac Date: Fri, 8 Jun 2012 14:48:01 +0200 Subject: [PATCH] Fix for LIBCLOUD-209 Zerigo DNS driver fails to list records when URL type exists --- libcloud/dns/drivers/zerigo.py | 1 + libcloud/dns/types.py | 1 + test/dns/test_zerigo.py | 2 +- 3 files changed, 3 insertions(+), 1 deletions(-) diff --git libcloud/dns/drivers/zerigo.py libcloud/dns/drivers/zerigo.py index 44395c3..7d770c2 100644 --- libcloud/dns/drivers/zerigo.py +++ libcloud/dns/drivers/zerigo.py @@ -140,6 +140,7 @@ class ZerigoDNSDriver(DNSDriver): RecordType.PTR: 'PTR', RecordType.SPF: 'SPF', RecordType.GEO: 'GEO', + RecordType.URL: 'URL', } def list_zones(self): diff --git libcloud/dns/types.py libcloud/dns/types.py index 3dd6043..feb1bd2 100644 --- libcloud/dns/types.py +++ libcloud/dns/types.py @@ -55,6 +55,7 @@ class RecordType(object): NAPTR = 12 REDIRECT = 13 GEO = 14 + URL = 15 @classmethod def __repr__(self, value): diff --git test/dns/test_zerigo.py test/dns/test_zerigo.py index 53bfb1e..2cc2888 100644 --- test/dns/test_zerigo.py +++ test/dns/test_zerigo.py @@ -46,7 +46,7 @@ class ZerigoTests(unittest.TestCase): def test_list_record_types(self): record_types = self.driver.list_record_types() - self.assertEqual(len(record_types), 12) + self.assertEqual(len(record_types), 13) self.assertTrue(RecordType.A in record_types) def test_list_zones_success(self): -- 1.7.3.1