mirror of
https://github.com/github/octodns.git
synced 2024-05-11 05:55:00 +00:00
better helper method name
This commit is contained in:
@@ -20,7 +20,7 @@ from ..record import Record, Update
|
||||
from .base import BaseProvider
|
||||
|
||||
|
||||
def _check_endswith_dot(string):
|
||||
def _ensure_endswith_dot(string):
|
||||
return string if string.endswith('.') else '{}.'.format(string)
|
||||
|
||||
|
||||
@@ -814,7 +814,7 @@ class Ns1Provider(BaseProvider):
|
||||
if record['type'] in ['ALIAS', 'CNAME', 'MX', 'NS', 'PTR',
|
||||
'SRV']:
|
||||
record['short_answers'] = [
|
||||
_check_endswith_dot(a)
|
||||
_ensure_endswith_dot(a)
|
||||
for a in record['short_answers']
|
||||
]
|
||||
|
||||
|
Reference in New Issue
Block a user