fix(ntp): disable failure ignored (#2835)

Disable failure was ignored previously, this ensures it isn't.
This commit is contained in:
James Elliott 2022-02-03 14:04:24 +11:00 committed by GitHub
parent 1772a83190
commit 7775d2af0e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 1 deletions

View File

@ -79,6 +79,7 @@ The scope should be the name of the package affected
* mocks * mocks
* models * models
* notification * notification
* ntp
* oidc * oidc
* regulation * regulation
* server * server

View File

@ -110,8 +110,10 @@ func doStartupChecks(config *schema.Configuration, providers *middlewares.Provid
} else if err = doStartupCheck(logger, "ntp", providers.NTP, config.NTP.DisableStartupCheck); err != nil { } else if err = doStartupCheck(logger, "ntp", providers.NTP, config.NTP.DisableStartupCheck); err != nil {
logger.Errorf("Failure running the user provider startup check: %+v", err) logger.Errorf("Failure running the user provider startup check: %+v", err)
if !config.NTP.DisableFailure {
failures = append(failures, "ntp") failures = append(failures, "ntp")
} }
}
if len(failures) != 0 { if len(failures) != 0 {
logger.Fatalf("The following providers had fatal failures during startup: %s", strings.Join(failures, ", ")) logger.Fatalf("The following providers had fatal failures during startup: %s", strings.Join(failures, ", "))

View File

@ -36,6 +36,7 @@ module.exports = {
"models", "models",
"notification", "notification",
"npm", "npm",
"ntp",
"oidc", "oidc",
"regulation", "regulation",
"renovate", "renovate",