postgres modules: move params mapping from main to connect_to_db (#55549)

* params mapping to connect_to_db
This commit is contained in:
Andrey Klychkov
2019-04-25 13:38:38 +03:00
committed by John R Barker
parent 03cac394cc
commit 2250257809
16 changed files with 214 additions and 689 deletions

View File

@@ -486,7 +486,7 @@ def main():
if not raw_connection:
try:
pgutils.ensure_libs(sslrootcert=module.params.get('ca_cert'))
pgutils.ensure_libs(module)
db_connection = psycopg2.connect(database=maintenance_db, **kw)
# Enable autocommit so we can create databases