fix(ntp): disable failure ignored (#2835)
Disable failure was ignored previously, this ensures it isn't.pull/2799/head
parent
1772a83190
commit
7775d2af0e
|
@ -79,6 +79,7 @@ The scope should be the name of the package affected
|
|||
* mocks
|
||||
* models
|
||||
* notification
|
||||
* ntp
|
||||
* oidc
|
||||
* regulation
|
||||
* server
|
||||
|
|
|
@ -110,7 +110,9 @@ func doStartupChecks(config *schema.Configuration, providers *middlewares.Provid
|
|||
} else if err = doStartupCheck(logger, "ntp", providers.NTP, config.NTP.DisableStartupCheck); err != nil {
|
||||
logger.Errorf("Failure running the user provider startup check: %+v", err)
|
||||
|
||||
failures = append(failures, "ntp")
|
||||
if !config.NTP.DisableFailure {
|
||||
failures = append(failures, "ntp")
|
||||
}
|
||||
}
|
||||
|
||||
if len(failures) != 0 {
|
||||
|
|
|
@ -36,6 +36,7 @@ module.exports = {
|
|||
"models",
|
||||
"notification",
|
||||
"npm",
|
||||
"ntp",
|
||||
"oidc",
|
||||
"regulation",
|
||||
"renovate",
|
||||
|
|
Loading…
Reference in New Issue