forked from TrueCloudLab/certificates
Fix restart with simple DB.
This commit is contained in:
parent
fb6a1afd89
commit
120e2d0caf
1 changed files with 1 additions and 1 deletions
2
ca/ca.go
2
ca/ca.go
|
@ -159,7 +159,7 @@ func (ca *CA) Reload() error {
|
|||
}
|
||||
|
||||
// Do not allow reload if the database configuration has changed.
|
||||
if ca.config.DB != nil && !reflect.DeepEqual(ca.config.DB, config.DB) {
|
||||
if !reflect.DeepEqual(ca.config.DB, config.DB) {
|
||||
logContinue("Reload failed because the database configuration has changed.")
|
||||
return errors.New("error reloading ca: database configuration cannot change")
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue