From 7a02d53735c42e579f6ce784e7ce2e4306e24838 Mon Sep 17 00:00:00 2001 From: signedav Date: Thu, 21 Nov 2024 15:13:22 +0100 Subject: [PATCH] allow connections withouth username password because systems like kerberos can handle it. --- modelbaker/utils/db_utils.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/modelbaker/utils/db_utils.py b/modelbaker/utils/db_utils.py index 6ee0a0b..be1158e 100644 --- a/modelbaker/utils/db_utils.py +++ b/modelbaker/utils/db_utils.py @@ -88,10 +88,7 @@ def get_configuration_from_sourceprovider(provider, configuration): configuration.database = layer_source.database() or service_map.get("dbname") configuration.dbschema = layer_source.schema() valid = bool( - configuration.dbusr - and configuration.dbhost - and configuration.database - and configuration.dbschema + configuration.dbhost and configuration.database and configuration.dbschema ) elif provider.name() == "ogr" and provider.storageType() == "GPKG": configuration.tool = mode = DbIliMode.gpkg