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. // 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 {