wip
This commit is contained in:
parent
9bf9bf142d
commit
5929244fda
1 changed files with 3 additions and 2 deletions
|
@ -201,8 +201,9 @@ func (a *Authority) init() error {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Pull AuthConfig from DB.
|
// Initialize step-ca Admin Database if it's not already initialized using
|
||||||
if true {
|
// WithAdminDB.
|
||||||
|
if a.adminDB == nil {
|
||||||
// Check if AuthConfig already exists
|
// Check if AuthConfig already exists
|
||||||
a.adminDB, err = authMgmtNosql.New(a.db.(nosql.DB), mgmt.DefaultAuthorityID)
|
a.adminDB, err = authMgmtNosql.New(a.db.(nosql.DB), mgmt.DefaultAuthorityID)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Add table
Reference in a new issue