Skip to content

Commit

Permalink
Replacing hardcoded port for a connection attr reference
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor Faro committed Oct 2, 2023
1 parent fabedd8 commit bcb65a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cosmos/profiles/postgres/user_pass.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bcb65a8

Please sign in to comment.