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

Move if branch around to avoid creating unnecessary filter chains

This commit is contained in:
Steve Coursen
2018-02-13 09:14:05 -05:00
parent 43f6ff7210
commit 2e17176442

View File

@@ -233,11 +233,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": {}}
)