Browse Source

Simplify _include_change check

pull/182/head
Paul van Brouwershaven 8 years ago
parent
commit
c6634b3ccc
1 changed files with 2 additions and 9 deletions
  1. +2
    -9
      octodns/provider/cloudflare.py

+ 2
- 9
octodns/provider/cloudflare.py View File

@ -251,15 +251,8 @@ class CloudflareProvider(BaseProvider):
# If this is a record to enable Cloudflare CDN don't update as
# we don't know the original values.
if (hasattr(change.new, '_type') and
(change.new._type == 'CNAME' or
change.new._type == 'ALIAS') and
change.new.value.endswith('.cdn.cloudflare.net.')):
return False
if (hasattr(change.existing, '_type') and
(change.existing._type == 'CNAME' or
change.existing._type == 'ALIAS') and
change.existing.value.endswith('.cdn.cloudflare.net.')):
if (change.record._type in ('ALIAS', 'CNAME') and
change.record.value.endswith('.cdn.cloudflare.net.')):
return False
return True


Loading…
Cancel
Save