We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 24cba8b commit c2e6310Copy full SHA for c2e6310
src/server/utils/databases.py
@@ -28,6 +28,9 @@ def connect(config: Database) -> oracledb.Connection:
28
include_fields = set(DatabaseAuth.model_fields.keys())
29
db_config = config.model_dump(include=include_fields)
30
logger.debug("Database Config: %s", db_config)
31
+ # If a wallet password is provided but no wallet location is set, default the wallet location to the config directory
32
+ if db_config.get("wallet_password") and not db_config.get("wallet_location"):
33
+ db_config["wallet_location"] = db_config["config_dir"]
34
# Check if connection settings are configured
35
if any(not db_config[key] for key in ("user", "password", "dsn")):
36
raise DbException(status_code=400, detail="missing connection details")
0 commit comments