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