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

map( to [...]

This commit is contained in:
Ross McFarland
2019-10-09 15:41:18 -07:00
parent 4d0bc29acc
commit 10ad30e7ea
3 changed files with 5 additions and 6 deletions

View File

@@ -903,10 +903,10 @@ class DynProvider(BaseProvider):
# Sort the values for consistent ordering so that we can compare
values = sorted(values, key=_dynamic_value_sort_key)
# Ensure that weight is included and if not use the default
values = list(map(lambda v: {
values = [{
'value': v['value'],
'weight': v.get('weight', 1),
}, values))
} for v in values]
# Walk through our existing pools looking for a match we can use
for pool in pools: