octodns-cloudns 0.0.2__tar.gz → 0.0.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of octodns-cloudns might be problematic. Click here for more details.
- {octodns-cloudns-0.0.2 → octodns-cloudns-0.0.3}/PKG-INFO +1 -1
- {octodns-cloudns-0.0.2 → octodns-cloudns-0.0.3}/octodns_cloudns/__init__.py +10 -5
- {octodns-cloudns-0.0.2 → octodns-cloudns-0.0.3}/octodns_cloudns.egg-info/PKG-INFO +1 -1
- {octodns-cloudns-0.0.2 → octodns-cloudns-0.0.3}/LICENSE +0 -0
- {octodns-cloudns-0.0.2 → octodns-cloudns-0.0.3}/README.md +0 -0
- {octodns-cloudns-0.0.2 → octodns-cloudns-0.0.3}/octodns_cloudns.egg-info/SOURCES.txt +0 -0
- {octodns-cloudns-0.0.2 → octodns-cloudns-0.0.3}/octodns_cloudns.egg-info/dependency_links.txt +0 -0
- {octodns-cloudns-0.0.2 → octodns-cloudns-0.0.3}/octodns_cloudns.egg-info/requires.txt +0 -0
- {octodns-cloudns-0.0.2 → octodns-cloudns-0.0.3}/octodns_cloudns.egg-info/top_level.txt +0 -0
- {octodns-cloudns-0.0.2 → octodns-cloudns-0.0.3}/setup.cfg +0 -0
- {octodns-cloudns-0.0.2 → octodns-cloudns-0.0.3}/setup.py +0 -0
|
@@ -8,7 +8,7 @@ from octodns.record import Record
|
|
|
8
8
|
logging.basicConfig(level=logging.DEBUG)
|
|
9
9
|
logger = logging.getLogger(__name__)
|
|
10
10
|
|
|
11
|
-
__version__ = __VERSION__ = '0.0.
|
|
11
|
+
__version__ = __VERSION__ = '0.0.3'
|
|
12
12
|
|
|
13
13
|
class ClouDNSClientException(ProviderException):
|
|
14
14
|
pass
|
|
@@ -64,7 +64,7 @@ class ClouDNSClient(object):
|
|
|
64
64
|
# Currently hard-coded, but could offer XML in the future
|
|
65
65
|
self._type = 'json'
|
|
66
66
|
|
|
67
|
-
self._urlbase = 'https://
|
|
67
|
+
self._urlbase = 'https://apidev.cloudns.net/{0}.{1}?{4}={2}&auth-password={3}&{0}'.format(
|
|
68
68
|
'{}', self._type, self.auth_id, self.auth_password, self._auth_type)
|
|
69
69
|
|
|
70
70
|
|
|
@@ -117,7 +117,7 @@ class ClouDNSClient(object):
|
|
|
117
117
|
|
|
118
118
|
single_types = ['CNAME', 'A', 'AAAA', 'DNAME', 'ALIAS', 'NS', 'PTR', 'SPF', 'TXT']
|
|
119
119
|
if rrset_type in single_types:
|
|
120
|
-
params += '&record={}'.format(rrset_values[0].replace('\;', ';'))
|
|
120
|
+
params += '&record={}'.format(rrset_values[0].replace('\;', ';').replace('+', '%2B'))
|
|
121
121
|
|
|
122
122
|
if(geodns is True):
|
|
123
123
|
for location in rrset_locations:
|
|
@@ -260,10 +260,14 @@ class ClouDNSProvider(BaseProvider):
|
|
|
260
260
|
return {
|
|
261
261
|
"ttl": records[0]["ttl"],
|
|
262
262
|
"type": _type,
|
|
263
|
-
"
|
|
263
|
+
"values": [
|
|
264
|
+
(record["record"].replace(';', '\\;').rstrip('.'))
|
|
265
|
+
for record in records
|
|
266
|
+
]
|
|
264
267
|
}
|
|
265
268
|
|
|
266
269
|
|
|
270
|
+
|
|
267
271
|
_data_for_A = _data_for_multiple
|
|
268
272
|
_data_for_AAAA = _data_for_multiple
|
|
269
273
|
_data_for_SPF = _data_for_multiple
|
|
@@ -408,7 +412,7 @@ class ClouDNSProvider(BaseProvider):
|
|
|
408
412
|
)
|
|
409
413
|
zone.add_record(record, lenient=lenient)
|
|
410
414
|
exists = zone.name in self._zone_records
|
|
411
|
-
|
|
415
|
+
print(
|
|
412
416
|
"populate: found %s records, exists=%s",
|
|
413
417
|
len(zone.records) - before,
|
|
414
418
|
exists,
|
|
@@ -643,6 +647,7 @@ class ClouDNSProvider(BaseProvider):
|
|
|
643
647
|
and existing._type == record['type']
|
|
644
648
|
and value == record['record']
|
|
645
649
|
):
|
|
650
|
+
print(record['record'])
|
|
646
651
|
record_ids.append(record_id)
|
|
647
652
|
return record_ids
|
|
648
653
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{octodns-cloudns-0.0.2 → octodns-cloudns-0.0.3}/octodns_cloudns.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|