Skip to content

Commit

Permalink
do pkcs11 stuff first
Browse files Browse the repository at this point in the history
  • Loading branch information
vinas003 committed Jan 22, 2024
1 parent ee31be2 commit 3c31991
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pkcs11_ca_service/startup.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,13 +157,13 @@ async def startup() -> None:
None
"""

db_obj = _load_db_module()
db_data_classes = _load_db_data_classes()

# Check pkcs11
if not await _pkcs11_check():
sys.exit(1)

db_obj = _load_db_module()
db_data_classes = _load_db_data_classes()

# Check DB
if not await _db_startup(db_obj, db_data_classes):
sys.exit(1)
Expand Down

0 comments on commit 3c31991

Please sign in to comment.