From 73ad7000cab36088245dfafcae5db1f5b4df85f6 Mon Sep 17 00:00:00 2001 From: Viranch Mehta Date: Thu, 12 Aug 2021 22:33:10 -0700 Subject: [PATCH] better helper method name --- octodns/provider/ns1.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/octodns/provider/ns1.py b/octodns/provider/ns1.py index 72e0bc9..9209ede 100644 --- a/octodns/provider/ns1.py +++ b/octodns/provider/ns1.py @@ -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'] ]