mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
fix(ntp): disable failure ignored (#2835)
Disable failure was ignored previously, this ensures it isn't.
This commit is contained in:
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,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, ", "))
|
||||||
|
|
|
@ -36,6 +36,7 @@ module.exports = {
|
||||||
"models",
|
"models",
|
||||||
"notification",
|
"notification",
|
||||||
"npm",
|
"npm",
|
||||||
|
"ntp",
|
||||||
"oidc",
|
"oidc",
|
||||||
"regulation",
|
"regulation",
|
||||||
"renovate",
|
"renovate",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user