presslabs / zinc

Route 53 zone manager.
https://www.presslabs.com/code/zinc/
Other
42 stars 2 forks source link

Recreating a deleted policy records leaves the system inconsistent #209

Closed calind closed 7 years ago

calind commented 7 years ago
  1. delete policy_record cdn.test.com. It will mark it as deleted and dirty
  2. create policy_record cdn.test.com while it's dirty. It will leave cdn.test.com marked as deleted

When creating a policy record, we should clear the deleted flag if entity already exists in db.