libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject git commit: Sort values in RECORD_TYPE_MAP.
Date Sun, 30 Mar 2014 20:53:29 GMT
Repository: libcloud
Updated Branches:
  refs/heads/trunk dcfe4d9f8 -> 121daef80


Sort values in RECORD_TYPE_MAP.

Having the values sorted makes it easier to spot duplicate.

Closes #270

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/121daef8
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/121daef8
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/121daef8

Branch: refs/heads/trunk
Commit: 121daef8096b5bdaf6c03451ef74294b6c5f8222
Parents: dcfe4d9
Author: Franck Cuny <franck.cuny@gmail.com>
Authored: Sun Mar 30 10:21:09 2014 -0700
Committer: Tomaz Muraus <tomaz@apache.org>
Committed: Sun Mar 30 22:46:32 2014 +0200

----------------------------------------------------------------------
 libcloud/dns/drivers/gandi.py       | 10 +++++-----
 libcloud/dns/drivers/hostvirtual.py |  2 +-
 libcloud/dns/drivers/rackspace.py   |  4 ++--
 libcloud/dns/drivers/route53.py     |  9 ++++-----
 libcloud/dns/drivers/zerigo.py      |  8 ++++----
 5 files changed, 16 insertions(+), 17 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/121daef8/libcloud/dns/drivers/gandi.py
----------------------------------------------------------------------
diff --git a/libcloud/dns/drivers/gandi.py b/libcloud/dns/drivers/gandi.py
index 8a8f68a..48a6ed5 100644
--- a/libcloud/dns/drivers/gandi.py
+++ b/libcloud/dns/drivers/gandi.py
@@ -88,16 +88,16 @@ class GandiDNSDriver(BaseGandiDriver, DNSDriver):
     connectionCls = GandiDNSConnection
 
     RECORD_TYPE_MAP = {
-        RecordType.NS: 'NS',
-        RecordType.MX: 'MX',
         RecordType.A: 'A',
         RecordType.AAAA: 'AAAA',
         RecordType.CNAME: 'CNAME',
-        RecordType.TXT: 'TXT',
-        RecordType.SRV: 'SRV',
+        RecordType.LOC: 'LOC',
+        RecordType.MX: 'MX',
+        RecordType.NS: 'NS',
         RecordType.SPF: 'SPF',
+        RecordType.SRV: 'SRV',
+        RecordType.TXT: 'TXT',
         RecordType.WKS: 'WKS',
-        RecordType.LOC: 'LOC',
     }
 
     def _to_zone(self, zone):

http://git-wip-us.apache.org/repos/asf/libcloud/blob/121daef8/libcloud/dns/drivers/hostvirtual.py
----------------------------------------------------------------------
diff --git a/libcloud/dns/drivers/hostvirtual.py b/libcloud/dns/drivers/hostvirtual.py
index 116d385..1d9eec2 100644
--- a/libcloud/dns/drivers/hostvirtual.py
+++ b/libcloud/dns/drivers/hostvirtual.py
@@ -65,9 +65,9 @@ class HostVirtualDNSDriver(DNSDriver):
         RecordType.AAAA: 'AAAA',
         RecordType.CNAME: 'CNAME',
         RecordType.MX: 'MX',
-        RecordType.TXT: 'TXT',
         RecordType.NS: 'SPF',
         RecordType.SRV: 'SRV',
+        RecordType.TXT: 'TXT',
     }
 
     def __init__(self, key, secure=True, host=None, port=None):

http://git-wip-us.apache.org/repos/asf/libcloud/blob/121daef8/libcloud/dns/drivers/rackspace.py
----------------------------------------------------------------------
diff --git a/libcloud/dns/drivers/rackspace.py b/libcloud/dns/drivers/rackspace.py
index ea7dfef..fc7da74 100644
--- a/libcloud/dns/drivers/rackspace.py
+++ b/libcloud/dns/drivers/rackspace.py
@@ -145,9 +145,9 @@ class RackspaceDNSDriver(DNSDriver, OpenStackDriverMixin):
         RecordType.CNAME: 'CNAME',
         RecordType.MX: 'MX',
         RecordType.NS: 'NS',
-        RecordType.TXT: 'TXT',
-        RecordType.SRV: 'SRV',
         RecordType.PTR: 'PTR',
+        RecordType.SRV: 'SRV',
+        RecordType.TXT: 'TXT',
     }
 
     def iterate_zones(self):

http://git-wip-us.apache.org/repos/asf/libcloud/blob/121daef8/libcloud/dns/drivers/route53.py
----------------------------------------------------------------------
diff --git a/libcloud/dns/drivers/route53.py b/libcloud/dns/drivers/route53.py
index d07bb6c..f1a8f34 100644
--- a/libcloud/dns/drivers/route53.py
+++ b/libcloud/dns/drivers/route53.py
@@ -103,17 +103,16 @@ class Route53DNSDriver(DNSDriver):
     connectionCls = Route53Connection
 
     RECORD_TYPE_MAP = {
-        RecordType.NS: 'NS',
-        RecordType.MX: 'MX',
         RecordType.A: 'A',
         RecordType.AAAA: 'AAAA',
         RecordType.CNAME: 'CNAME',
-        RecordType.TXT: 'TXT',
-        RecordType.SRV: 'SRV',
+        RecordType.MX: 'MX',
+        RecordType.NS: 'NS',
         RecordType.PTR: 'PTR',
         RecordType.SOA: 'SOA',
         RecordType.SPF: 'SPF',
-        RecordType.TXT: 'TXT'
+        RecordType.SRV: 'SRV',
+        RecordType.TXT: 'TXT',
     }
 
     def iterate_zones(self):

http://git-wip-us.apache.org/repos/asf/libcloud/blob/121daef8/libcloud/dns/drivers/zerigo.py
----------------------------------------------------------------------
diff --git a/libcloud/dns/drivers/zerigo.py b/libcloud/dns/drivers/zerigo.py
index 892b4fb..0af7a9f 100644
--- a/libcloud/dns/drivers/zerigo.py
+++ b/libcloud/dns/drivers/zerigo.py
@@ -134,15 +134,15 @@ class ZerigoDNSDriver(DNSDriver):
         RecordType.A: 'A',
         RecordType.AAAA: 'AAAA',
         RecordType.CNAME: 'CNAME',
+        RecordType.GEO: 'GEO',
         RecordType.MX: 'MX',
-        RecordType.REDIRECT: 'REDIRECT',
-        RecordType.TXT: 'TXT',
-        RecordType.SRV: 'SRV',
         RecordType.NAPTR: 'NAPTR',
         RecordType.NS: 'NS',
         RecordType.PTR: 'PTR',
+        RecordType.REDIRECT: 'REDIRECT',
         RecordType.SPF: 'SPF',
-        RecordType.GEO: 'GEO',
+        RecordType.SRV: 'SRV',
+        RecordType.TXT: 'TXT',
         RecordType.URL: 'URL',
     }
 


Mime
View raw message