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
|
* mocks
|
||||||
* models
|
* models
|
||||||
* notification
|
* notification
|
||||||
|
* ntp
|
||||||
* oidc
|
* oidc
|
||||||
* regulation
|
* regulation
|
||||||
* server
|
* 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 {
|
} 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)
|
||||||
|
|
||||||
failures = append(failures, "ntp")
|
if !config.NTP.DisableFailure {
|
||||||
|
failures = append(failures, "ntp")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if len(failures) != 0 {
|
if len(failures) != 0 {
|
||||||
|
|
|
@ -36,6 +36,7 @@ module.exports = {
|
||||||
"models",
|
"models",
|
||||||
"notification",
|
"notification",
|
||||||
"npm",
|
"npm",
|
||||||
|
"ntp",
|
||||||
"oidc",
|
"oidc",
|
||||||
"regulation",
|
"regulation",
|
||||||
"renovate",
|
"renovate",
|
||||||
|
|
Loading…
Reference in New Issue