octodns-cloudns 0.0.9__tar.gz → 0.0.11__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: octodns-cloudns
3
- Version: 0.0.9
3
+ Version: 0.0.11
4
4
  Summary: ClouDNS API provider for octoDNS
5
5
  Home-page: https://github.com/octodns/octodns-cloudns
6
6
  Author: ClouDNS
@@ -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.9'
11
+ __version__ = __VERSION__ = '0.0.11'
12
12
 
13
13
  class ClouDNSClientException(ProviderException):
14
14
  pass
@@ -118,7 +118,7 @@ class ClouDNSClient(object):
118
118
 
119
119
  single_types = ['CNAME', 'A', 'AAAA', 'DNAME', 'ALIAS', 'NS', 'PTR', 'SPF', 'TXT']
120
120
  if rrset_type in single_types:
121
- params += '&record={}'.format(rrset_values[0].replace('\;', ';').replace('+', '%2B'))
121
+ params += '&record={}'.format(rrset_values[0].replace(r'\;', ';').replace('+', '%2B'))
122
122
 
123
123
  if(geodns is True):
124
124
  for location in rrset_locations:
@@ -628,6 +628,13 @@ class ClouDNSProvider(BaseProvider):
628
628
  and value.precision_vert == record['v_precision']
629
629
  ):
630
630
  record_ids.append(record_id)
631
+ elif existing._type == 'CNAME' and record['type'] == 'CNAME':
632
+ if (
633
+ existing.name == record['host']
634
+ and existing._type == record['type']
635
+ and existing.value == record['record']+'.'
636
+ ):
637
+ record_ids.append(record_id)
631
638
  else:
632
639
  if (record == 'Failed' or record == 'Missing domain-name'):
633
640
  continue
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: octodns-cloudns
3
- Version: 0.0.9
3
+ Version: 0.0.11
4
4
  Summary: ClouDNS API provider for octoDNS
5
5
  Home-page: https://github.com/octodns/octodns-cloudns
6
6
  Author: ClouDNS