mirror of
https://github.com/github/octodns.git
synced 2024-05-11 05:55:00 +00:00
map( to [...]
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user