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:
@@ -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(
|
||||
|
Reference in New Issue
Block a user