Browse Source

DynProvider dynamic serve_count=1 to match Route53

Might be possible/make sense to allow it to be configured later, but for now
Route53 doesn't support it so we'll go with 1 to make sure that things match
up behavior-wise.
pull/339/head
Ross McFarland 7 years ago
parent
commit
639ace9ce4
No known key found for this signature in database GPG Key ID: 61C10C4FC8FE4A89
1 changed files with 2 additions and 3 deletions
  1. +2
    -3
      octodns/provider/dyn.py

+ 2
- 3
octodns/provider/dyn.py View File

@ -927,9 +927,8 @@ class DynProvider(BaseProvider):
# We don't have this pool and thus need to create it
records_for = getattr(self, '_dynamic_records_for_{}'.format(_type))
records = records_for(values, record_extras)
record_set = DSFRecordSet(_type, label,
serve_count=min(len(records), 2),
records=records, dsf_monitor_id=monitor_id)
record_set = DSFRecordSet(_type, label, serve_count=1, records=records,
dsf_monitor_id=monitor_id)
chain = DSFFailoverChain(label, record_sets=[record_set])
pool = DSFResponsePool(label, rs_chains=[chain])
pool.create(td)


Loading…
Cancel
Save