From 462fba04eca3681b7ff2817be094c6cf9638b102 Mon Sep 17 00:00:00 2001 From: signedav Date: Thu, 31 Aug 2023 09:00:37 +0200 Subject: [PATCH] Fix missing port parsing from layer to use in validator --- modelbaker/utils/db_utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/modelbaker/utils/db_utils.py b/modelbaker/utils/db_utils.py index d6be3fc..4e923e8 100644 --- a/modelbaker/utils/db_utils.py +++ b/modelbaker/utils/db_utils.py @@ -84,6 +84,7 @@ def get_configuration_from_sourceprovider(provider, configuration): configuration.dbusr = layer_source.username() or service_map.get("user") configuration.dbpwd = layer_source.password() or service_map.get("password") configuration.dbhost = layer_source.host() or service_map.get("host") + configuration.dbport = layer_source.port() or service_map.get("port") configuration.database = layer_source.database() or service_map.get("dbname") configuration.dbschema = layer_source.schema() valid = bool(