forked from TrueCloudLab/certificates
Add new WithDatabase to test reload.
This commit is contained in:
parent
9f39cb5f2a
commit
e8498bf612
1 changed files with 4 additions and 1 deletions
|
@ -525,7 +525,10 @@ func doReload(ca *CA) error {
|
||||||
return errors.Wrap(err, "error reloading ca")
|
return errors.Wrap(err, "error reloading ca")
|
||||||
}
|
}
|
||||||
|
|
||||||
newCA, err := New(config, WithPassword(ca.opts.password), WithConfigFile(ca.opts.configFile))
|
newCA, err := New(config,
|
||||||
|
WithPassword(ca.opts.password),
|
||||||
|
WithConfigFile(ca.opts.configFile),
|
||||||
|
WithDatabase(ca.auth.GetDatabase()))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return errors.Wrap(err, "error reloading ca")
|
return errors.Wrap(err, "error reloading ca")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue