Skip to content

Commit

Permalink
Merge pull request #119 from opengisch/fixkerb
Browse files Browse the repository at this point in the history
don't set None when no fallback user active
  • Loading branch information
signedav authored Nov 13, 2024
2 parents eac8ec9 + 00e9304 commit 8240c1e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modelbaker/db_factory/pg_command_config_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,10 @@ def get_uri(
uri += ["password={}".format(authconfig_map.get("password"))]
else:
if not service_config or not service_config.get("user", None):
uri += ["user={}".format(self.configuration.dbusr or fallback_user)]
if self.configuration.dbusr:
uri += ["user={}".format(self.configuration.dbusr)]
elif fallback_user:
uri += ["user={}".format(fallback_user)]
if not service_config or not service_config.get("password", None):
if self.configuration.dbpwd:
uri += ["password={}".format(self.configuration.dbpwd)]
Expand Down

0 comments on commit 8240c1e

Please sign in to comment.