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:
@@ -233,11 +233,10 @@ class Ns1Provider(BaseProvider):
|
|||||||
},
|
},
|
||||||
)
|
)
|
||||||
params['filters'] = []
|
params['filters'] = []
|
||||||
if len(params['answers']) > 1:
|
if has_country:
|
||||||
params['filters'].append(
|
params['filters'].append(
|
||||||
{"filter": "shuffle", "config": {}}
|
{"filter": "shuffle", "config": {}}
|
||||||
)
|
)
|
||||||
if has_country:
|
|
||||||
params['filters'].append(
|
params['filters'].append(
|
||||||
{"filter": "geotarget_country", "config": {}}
|
{"filter": "geotarget_country", "config": {}}
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user