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

after discussion, we should shuffle if there's more than 1 answer

This commit is contained in:
Stephen Coursen
2018-01-05 22:45:00 +00:00
parent e6cda62284
commit 34f2432c3f

View File

@@ -221,11 +221,11 @@ class Ns1Provider(BaseProvider):
},
)
params['filters'] = []
if len(params['answers']) > 1:
params['filters'].append(
{"filter": "shuffle", "config":{}}
)
if has_country:
if len(params['answers']) > 1:
params['filters'].append(
{"filter": "shuffle", "config":{}}
)
params['filters'].append(
{"filter": "geotarget_country", "config": {}}
)