Fix psycopg2 connection argument

commit 6eea97c3ef modified the kwarg from "user"
to "username" by mistake.

Change-Id: Idfe8425d08c065ef19e8952e8fcb205779243a99
Closes-Bug: #1689211
This commit is contained in:
Julien Danjou 2017-05-08 14:03:53 -04:00
parent 5946fef119
commit c9421c6269
1 changed files with 1 additions and 1 deletions

View File

@ -220,7 +220,7 @@ class PostgresDriver(coordination.CoordinationDriver):
dbname = options.get("dbname") or parsed_url.path[1:]
kwargs = {}
if parsed_url.username is not None:
kwargs["username"] = parsed_url.username
kwargs["user"] = parsed_url.username
if parsed_url.password is not None:
kwargs["password"] = parsed_url.password