Skip to content

Commit

Permalink
Remove bad leftover from rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
troll-os committed Oct 29, 2024
1 parent c35b38a commit b2ee28f
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions plan/plan.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,22 +201,6 @@ func (p *Plan) Calculate() *Plan {
changes.Delete = append(changes.Delete, row.current...)
}

// Change the specified old txt-owner to the new txt-owner (if TXTOwnerMigrate==true and set the from-txt-owner)
if p.TXTOwnerMigrate && row.current != nil && len(row.candidates) > 0 && row.current.Labels[endpoint.OwnerLabelKey] == p.TXTOwnerOld {
hasMig = true
oldOwner := row.current.Labels[endpoint.OwnerLabelKey]
update := row.current
update.Labels[endpoint.OwnerLabelKey] = p.TXTOwner
log.WithFields(log.Fields{
"previousOwner": oldOwner,
"newOwner": p.TXTOwner,
"dnsName": row.current.DNSName,
"recordType": row.current.RecordType,
}).Info("Found record to migrate")
changes.UpdateNew = append(changes.UpdateNew, update)
changes.UpdateOld = append(changes.UpdateOld, row.current)
continue
}
// dns name is taken
if len(row.current) > 0 && len(row.candidates) > 0 {
creates := []*endpoint.Endpoint{}
Expand Down

0 comments on commit b2ee28f

Please sign in to comment.