Skip to content

Commit f0a101f

Browse files
committed
Adding port so keyring is not overwritten
1 parent 1723391 commit f0a101f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pgcli/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -620,7 +620,7 @@ def connect(self, database="", host="", user="", port="", passwd="", dsn="", **k
620620
if self.force_passwd_prompt and not passwd:
621621
passwd = click.prompt("Password for %s" % user, hide_input=True, show_default=False, type=str)
622622

623-
key = f"{user}@{host}"
623+
key = f"{user}@{host}@{port}"
624624

625625
if not passwd and auth.keyring:
626626
passwd = auth.keyring_get_password(key)

0 commit comments

Comments
 (0)