Browse Source

better helper method name

pull/754/head
Viranch Mehta 4 years ago
parent
commit
73ad7000ca
No known key found for this signature in database GPG Key ID: D83D1392AE9F93B4
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      octodns/provider/ns1.py

+ 2
- 2
octodns/provider/ns1.py View File

@ -20,7 +20,7 @@ from ..record import Record, Update
from .base import BaseProvider from .base import BaseProvider
def _check_endswith_dot(string):
def _ensure_endswith_dot(string):
return string if string.endswith('.') else '{}.'.format(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', if record['type'] in ['ALIAS', 'CNAME', 'MX', 'NS', 'PTR',
'SRV']: 'SRV']:
record['short_answers'] = [ record['short_answers'] = [
_check_endswith_dot(a)
_ensure_endswith_dot(a)
for a in record['short_answers'] for a in record['short_answers']
] ]


Loading…
Cancel
Save