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

Fix serialization of multiple answers, that had caused a ResourceException

This commit is contained in:
Steve Coursen
2018-01-08 20:13:20 -05:00
parent b06c14deae
commit 154ca64038

View File

@@ -215,12 +215,13 @@ class Ns1Provider(BaseProvider):
if not has_country and \
len(value.split('-')) > 1: # pragma: nocover
has_country = True
params['answers'].append(
{
'answer': target.values,
'meta': {key: [value]},
},
)
for answer in target.values:
params['answers'].append(
{
'answer': [answer],
'meta': {key: [value]},
},
)
params['filters'] = []
if len(params['answers']) > 1:
params['filters'].append(