fix: pass function as lambda

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
This commit is contained in:
Akhil Narang 2024-03-28 17:53:56 +05:30
parent 9940868063
commit 1847e9cae8
No known key found for this signature in database
GPG key ID: 9DCC61E211BF645F
2 changed files with 1 additions and 2 deletions

View file

@ -174,7 +174,7 @@ def install_db(
if setup:
setup_database(force, verbose, no_mariadb_socket)
if rollback_callback:
rollback_callback.add(drop_user_and_database(db_name, db_user or db_name))
rollback_callback.add(lambda: drop_user_and_database(db_name, db_user or db_name))
bootstrap_database(
verbose=verbose,

View file

@ -2,7 +2,6 @@
# License: MIT. See LICENSE
import functools
import hashlib
import io
import os
import shutil