Skip to content

Commit

Permalink
bug: fix digital ocean provider not setting TTL
Browse files Browse the repository at this point in the history
Signed-off-by: Ismayil Mirzali <ismayilmirzeli@gmail.com>
  • Loading branch information
Volatus committed Jul 5, 2022
1 parent c588f84 commit c32a852
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion provider/digitalocean/digital_ocean.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,8 @@ func (p *DigitalOceanProvider) Records(ctx context.Context) ([]*endpoint.Endpoin
name = zone.Name
}

ep := endpoint.NewEndpoint(name, r.Type, r.Data)
ep := endpoint.NewEndpointWithTTL(name, r.Type, endpoint.TTL(r.TTL), r.Data)

endpoints = append(endpoints, ep)
}
}
Expand Down

0 comments on commit c32a852

Please sign in to comment.