mirror of
https://github.com/github/octodns.git
synced 2024-05-11 05:55:00 +00:00
Merge remote-tracking branch 'origin/master' into python3-start
This commit is contained in:
@@ -536,13 +536,13 @@ def _mod_keyer(mod):
|
||||
# before all changes, followed by a "CREATE", internally in the AWS API.
|
||||
# Because of this, we order changes as follows:
|
||||
# - Delete any records that we wish to delete that are GEOS
|
||||
# (because they are never targetted by anything)
|
||||
# (because they are never targeted by anything)
|
||||
# - Delete any records that we wish to delete that are SECONDARY
|
||||
# (because they are no longer targetted by GEOS)
|
||||
# (because they are no longer targeted by GEOS)
|
||||
# - Delete any records that we wish to delete that are PRIMARY
|
||||
# (because they are no longer targetted by SECONDARY)
|
||||
# (because they are no longer targeted by SECONDARY)
|
||||
# - Delete any records that we wish to delete that are VALUES
|
||||
# (because they are no longer targetted by PRIMARY)
|
||||
# (because they are no longer targeted by PRIMARY)
|
||||
# - CREATE/UPSERT any records that are VALUES
|
||||
# (because they don't depend on other records)
|
||||
# - CREATE/UPSERT any records that are PRIMARY
|
||||
@@ -731,7 +731,7 @@ class Route53Provider(BaseProvider):
|
||||
def _data_for_CAA(self, rrset):
|
||||
values = []
|
||||
for rr in rrset['ResourceRecords']:
|
||||
flags, tag, value = rr['Value'].split(' ')
|
||||
flags, tag, value = rr['Value'].split()
|
||||
values.append({
|
||||
'flags': flags,
|
||||
'tag': tag,
|
||||
@@ -769,7 +769,7 @@ class Route53Provider(BaseProvider):
|
||||
def _data_for_MX(self, rrset):
|
||||
values = []
|
||||
for rr in rrset['ResourceRecords']:
|
||||
preference, exchange = rr['Value'].split(' ')
|
||||
preference, exchange = rr['Value'].split()
|
||||
values.append({
|
||||
'preference': preference,
|
||||
'exchange': exchange,
|
||||
@@ -784,7 +784,7 @@ class Route53Provider(BaseProvider):
|
||||
values = []
|
||||
for rr in rrset['ResourceRecords']:
|
||||
order, preference, flags, service, regexp, replacement = \
|
||||
rr['Value'].split(' ')
|
||||
rr['Value'].split()
|
||||
flags = flags[1:-1]
|
||||
service = service[1:-1]
|
||||
regexp = regexp[1:-1]
|
||||
@@ -812,7 +812,7 @@ class Route53Provider(BaseProvider):
|
||||
def _data_for_SRV(self, rrset):
|
||||
values = []
|
||||
for rr in rrset['ResourceRecords']:
|
||||
priority, weight, port, target = rr['Value'].split(' ')
|
||||
priority, weight, port, target = rr['Value'].split()
|
||||
values.append({
|
||||
'priority': priority,
|
||||
'weight': weight,
|
||||
@@ -1036,7 +1036,7 @@ class Route53Provider(BaseProvider):
|
||||
.get('healthcheck', {}) \
|
||||
.get('measure_latency', True)
|
||||
|
||||
def _health_check_equivilent(self, host, path, protocol, port,
|
||||
def _health_check_equivalent(self, host, path, protocol, port,
|
||||
measure_latency, health_check, value=None):
|
||||
config = health_check['HealthCheckConfig']
|
||||
|
||||
@@ -1088,7 +1088,7 @@ class Route53Provider(BaseProvider):
|
||||
if not health_check['CallerReference'].startswith(expected_ref):
|
||||
# not match, ignore
|
||||
continue
|
||||
if self._health_check_equivilent(healthcheck_host,
|
||||
if self._health_check_equivalent(healthcheck_host,
|
||||
healthcheck_path,
|
||||
healthcheck_protocol,
|
||||
healthcheck_port,
|
||||
@@ -1245,7 +1245,7 @@ class Route53Provider(BaseProvider):
|
||||
health_check = self.health_checks[health_check_id]
|
||||
caller_ref = health_check['CallerReference']
|
||||
if caller_ref.startswith(self.HEALTH_CHECK_VERSION):
|
||||
if self._health_check_equivilent(healthcheck_host,
|
||||
if self._health_check_equivalent(healthcheck_host,
|
||||
healthcheck_path,
|
||||
healthcheck_protocol,
|
||||
healthcheck_port,
|
||||
|
Reference in New Issue
Block a user