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

Merge pull request #195 from nsone/master

Properly set filter rules for geo answers
This commit is contained in:
Ross McFarland
2018-02-15 08:34:01 -08:00
committed by GitHub

View File

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