Add new WithDatabase to test reload.

This commit is contained in:
Mariano Cano 2019-05-10 17:49:15 -07:00
parent 9f39cb5f2a
commit e8498bf612

View file

@ -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")
} }