Use lowercase password

This commit is contained in:
Alan Rominger 2024-01-11 21:08:01 -05:00 committed by Dave
parent e84e2962d0
commit 20202054cc

View File

@ -107,7 +107,7 @@ def create_listener_connection():
# Allow password-less authentication
if 'PASSWORD' in conf:
conf['OPTIONS']['PASSWORD'] = conf.pop('PASSWORD')
conf['OPTIONS']['password'] = conf.pop('PASSWORD')
connection_data = f"dbname={conf['NAME']} host={conf['HOST']} user={conf['USER']} port={conf['PORT']}"
return psycopg.connect(connection_data, autocommit=True, **conf['OPTIONS'])