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

Add the default status in tests to make them pass

This commit is contained in:
Viranch Mehta
2021-09-27 18:31:38 -07:00
parent 880448615d
commit 787ce7ccc8
5 changed files with 45 additions and 7 deletions

View File

@@ -618,7 +618,12 @@ class ConstellixProvider(BaseProvider):
for i, rule in enumerate(record.dynamic.rules):
pool_name = rule.data.get('pool')
pool = record.dynamic.pools.get(pool_name)
values = pool.data.get('values')
values = [
{
'value': value['value'],
'weight': value['weight'],
} for value in pool.data.get('values', [])
]
# Make a pool name based on zone, record, type and name
generated_pool_name = \