libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject [04/14] libcloud git commit: Move rercord type map to the correct place.
Date Sun, 06 Dec 2015 06:32:42 GMT
Move rercord type map to the correct place.


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

Branch: refs/heads/trunk
Commit: de9e0dafc7ee7ae4a1f2c861f52d0bf5ebe2416a
Parents: 6d1d6de
Author: Tomaz Muraus <tomaz@tomaz.me>
Authored: Wed Nov 25 13:13:24 2015 +0100
Committer: Tomaz Muraus <tomaz@tomaz.me>
Committed: Sun Dec 6 13:01:24 2015 +0800

----------------------------------------------------------------------
 libcloud/dns/drivers/cloudflare.py | 24 ++++++++++++------------
 1 file changed, 12 insertions(+), 12 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/de9e0daf/libcloud/dns/drivers/cloudflare.py
----------------------------------------------------------------------
diff --git a/libcloud/dns/drivers/cloudflare.py b/libcloud/dns/drivers/cloudflare.py
index 96b087f..cfa6fd4 100644
--- a/libcloud/dns/drivers/cloudflare.py
+++ b/libcloud/dns/drivers/cloudflare.py
@@ -102,18 +102,6 @@ class CloudFlareDNSConnection(ConnectionUserAndKey):
     secure = True
     responseCls = CloudFlareDNSResponse
 
-    RECORD_TYPE_MAP = {
-        RecordType.A: 'A',
-        RecordType.AAAA: 'AAAA',
-        RecordType.CNAME: 'CNAME',
-        RecordType.MX: 'MX',
-        RecordType.TXT: 'TXT',
-        RecordType.SPF: 'SPF',
-        RecordType.NS: 'NS',
-        RecordType.SRV: 'SRV',
-        RecordType.URL: 'LOC'
-    }
-
     def request(self, action, params=None, data=None, headers=None,
                 method='GET'):
         params = params or {}
@@ -140,6 +128,18 @@ class CloudFlareDNSDriver(DNSDriver):
     website = 'https://www.cloudflare.com'
     connectionCls = CloudFlareDNSConnection
 
+    RECORD_TYPE_MAP = {
+        RecordType.A: 'A',
+        RecordType.AAAA: 'AAAA',
+        RecordType.CNAME: 'CNAME',
+        RecordType.MX: 'MX',
+        RecordType.TXT: 'TXT',
+        RecordType.SPF: 'SPF',
+        RecordType.NS: 'NS',
+        RecordType.SRV: 'SRV',
+        RecordType.URL: 'LOC'
+    }
+
     def iterate_zones(self):
         # TODO: Support pagination
         result = self.connection.request(action='zone_load_multi').object


Mime
View raw message