Skip to content

Commit

Permalink
missed the aligned track
Browse files Browse the repository at this point in the history
  • Loading branch information
rboyer committed Aug 8, 2023
1 parent eb39989 commit d5fc584
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,13 @@ func New() *Mapper {
// FailoverPolicy and indexes them so that MapService can turn Service events
// into FailoverPolicy events properly.
func (m *Mapper) TrackFailover(failover *resource.DecodedResource[pbcatalog.FailoverPolicy, *pbcatalog.FailoverPolicy]) {
m.trackFailover(failover.Resource.Id, failover.Data.GetUnderlyingDestinationRefs())
destRefs := failover.Data.GetUnderlyingDestinationRefs()
destRefs = append(destRefs, &pbresource.Reference{
Type: types.ServiceType,
Tenancy: failover.Resource.Id.Tenancy,
Name: failover.Resource.Id.Name,
})
m.trackFailover(failover.Resource.Id, destRefs)
}

func (m *Mapper) trackFailover(failover *pbresource.ID, services []*pbresource.Reference) {
Expand Down

0 comments on commit d5fc584

Please sign in to comment.