1
0
mirror of https://github.com/github/octodns.git synced 2024-05-11 05:55:00 +00:00

Broken up string formatting cleanup

This commit is contained in:
Ross McFarland
2022-08-11 08:42:16 -07:00
parent 33794f3796
commit 611431b042

View File

@@ -79,9 +79,7 @@ class Zone(object):
if not record._type == 'NS':
# and not a NS record, this should be in the sub
raise SubzoneRecordException(
f'Record {record.fqdn} a '
'managed sub-zone and not of '
'type NS'
f'Record {record.fqdn} a managed sub-zone and not of type NS'
)
else:
# It's not an exact match so there has to be a `.` before the
@@ -90,8 +88,7 @@ class Zone(object):
if name.endswith(f'.{sub_zone}'):
# this should be in a sub
raise SubzoneRecordException(
f'Record {record.fqdn} is under '
'a managed subzone'
f'Record {record.fqdn} is under a managed subzone'
)
if replace: