From bcb65a8c58ae5cdbc0460b35c320986522bc6cfc Mon Sep 17 00:00:00 2001 From: Victor Faro Date: Mon, 2 Oct 2023 11:31:06 -0300 Subject: [PATCH] Replacing hardcoded port for a connection attr reference --- cosmos/profiles/postgres/user_pass.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cosmos/profiles/postgres/user_pass.py b/cosmos/profiles/postgres/user_pass.py index 731d600794..f3e59f1e4c 100644 --- a/cosmos/profiles/postgres/user_pass.py +++ b/cosmos/profiles/postgres/user_pass.py @@ -40,7 +40,7 @@ class PostgresUserPasswordProfileMapping(BaseProfileMapping): def profile(self) -> dict[str, Any | None]: "Gets profile. The password is stored in an environment variable." profile = { - "port": 5432, + "port": self.conn.port, **self.mapped_params, **self.profile_args, # password should always get set as env var