mirror of
https://github.com/ansible/awx.git
synced 2026-03-01 16:58:46 -03:30
Added support for PG port and options
This commit is contained in:
@@ -75,7 +75,9 @@ def pg_bus_conn():
|
|||||||
conn = psycopg2.connect(dbname=conf['NAME'],
|
conn = psycopg2.connect(dbname=conf['NAME'],
|
||||||
host=conf['HOST'],
|
host=conf['HOST'],
|
||||||
user=conf['USER'],
|
user=conf['USER'],
|
||||||
password=conf['PASSWORD'])
|
password=conf['PASSWORD'],
|
||||||
|
port=conf['PORT'],
|
||||||
|
**conf["OPTIONS"])
|
||||||
# Django connection.cursor().connection doesn't have autocommit=True on
|
# Django connection.cursor().connection doesn't have autocommit=True on
|
||||||
conn.set_session(autocommit=True)
|
conn.set_session(autocommit=True)
|
||||||
pubsub = PubSub(conn)
|
pubsub = PubSub(conn)
|
||||||
|
|||||||
Reference in New Issue
Block a user