Browse Source

f-strings for BaseProvider supports update

pull/768/head
Ross McFarland 4 years ago
parent
commit
00f0bf8584
No known key found for this signature in database GPG Key ID: 943B179E15D3B22A
1 changed files with 2 additions and 4 deletions
  1. +2
    -4
      octodns/provider/base.py

+ 2
- 4
octodns/provider/base.py View File

@ -53,15 +53,13 @@ class BaseProvider(BaseSource):
for record in desired.records:
if record._type not in self.SUPPORTS:
msg = '{} records not supported for {}'.format(record._type,
record.fqdn)
msg = f'{record._type} records not supported for {record.fqdn}'
fallback = 'omitting record'
self.supports_warn_or_except(msg, fallback)
desired.remove_record(record)
elif getattr(record, 'dynamic', False) and \
not self.SUPPORTS_DYNAMIC:
msg = 'dynamic records not supported for {}'\
.format(record.fqdn)
msg = f'dynamic records not supported for {record.fqdn}'
fallback = 'falling back to simple record'
self.supports_warn_or_except(msg, fallback)
record = record.copy()


Loading…
Cancel
Save