This commit is contained in:
max furman 2021-05-20 13:12:02 -07:00
parent 9bf9bf142d
commit 5929244fda

View file

@ -201,8 +201,9 @@ func (a *Authority) init() error {
}
}
// Pull AuthConfig from DB.
if true {
// Initialize step-ca Admin Database if it's not already initialized using
// WithAdminDB.
if a.adminDB == nil {
// Check if AuthConfig already exists
a.adminDB, err = authMgmtNosql.New(a.db.(nosql.DB), mgmt.DefaultAuthorityID)
if err != nil {