1
0
Fork 0
mirror of https://gitlab.com/pnx-tools/dns-updater.git synced 2026-06-16 05:54:56 +02:00

cmd/dnsupdater/main.go: log and continue if service is not found

This commit is contained in:
Henrik Hautakoski 2025-10-13 07:34:49 +02:00
parent 9d0288174e
commit 49563af412

View file

@ -33,11 +33,16 @@ func main() {
for service_name, domains := range config.Updates {
log.Info().Str("service", service_name).Msg("Begin update for service")
// Get service
service := app.ProviderManager.Get(service_name)
if service == nil {
log.Warn().Str("service", service_name).Msg("Invalid service")
continue
}
log.Info().Str("service", service_name).Msg("Begin update for service")
for domain, records := range domains {
for name, data := range records {