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

fix broken test by updating the actual format of the answers

This commit is contained in:
Steve Coursen
2017-11-14 13:14:03 -05:00
parent 2cc17ffc7a
commit ce5ecc52e3
2 changed files with 4 additions and 2 deletions

View File

@@ -165,7 +165,7 @@ class Ns1Provider(BaseProvider):
def _params_for_A(self, record):
params = {'answers': record.values, 'ttl': record.ttl}
if record.geo:
if hasattr(record, 'geo'):
# purposefully set non-geo answers to have an empty meta,
# so that we know we did this on purpose if/when troubleshooting
params['answers'] = [{"answer": x, "meta": {}}